Имеется плата SK-AT91SAM9XE512-S3E, собраное ядро Linux.
Buildroot собирался на базе конфига с сайта: http://dmilvdv.narod.ru/AT91SAM9260/index.html
Конфиг busybox по умолчанию, версия 1.17.4. После загрузки выводится приглашение
Код
Welcome to Buildroot
buildroot login:
buildroot login:
после ввода root получаю символ "#", казалось бы можно вводить команды, но банальная LS не работает.
После нажатия ENTER получаю новый символ решетки..
Думал что с busybox проблемы, но ведь init то отрабатывает нормально...
Ниже инфа по busybox:
Код
# busybox
BusyBox v1.17.4 (2010-12-23 12:24:48 MSK) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
age: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, addgroup, adduser, ar, arping, ash, awk, basename, bunzip2,
bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt,
cksum, clear, cmp, cp, cpio, crond, crontab, cut, date, dc, dd,
deallocvt, delgroup, deluser, devmem, df, diff, dirname, dmesg, dnsd,
dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
ether-wake, expr, false, fdflush, fdformat, fgrep, find, fold, free,
freeramdisk, fsck, fuser, getopt, getty, grep, gunzip, gzip, halt,
hdparm, head, hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown,
ifup, inetd, init, insmod, install, ip, ipaddr, ipcrm, ipcs, iplink,
iproute, iprule, iptunnel, kill, killall, killall5, klogd, last,
length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
logger, login, logname, losetup, ls, lsattr, lsmod, lspci, lsusb,
lzcat, lzma, makedevs, md5sum, mdev, mesg, microcom, mkdir, mkfifo,
mknod, mkswap, mktemp, modprobe, more, mount, mountpoint, mt, mv,
nameif, netstat, nice, nohup, nslookup, od, openvt, passwd, patch,
pidof, ping, pipe_progress, pivot_root, poweroff, printenv, printf, ps,
pwd, rdate, readlink, readprofile, realpath, reboot, renice, reset,
resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq,
setarch, setconsole, setkeycodes, setlogcons, setsid, sh, sha1sum,
sha256sum, sha512sum, sleep, sort, start-stop-daemon, strings, stty,
su, sulogin, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail,
tar, tee, telnet, test, tftp, time, top, touch, tr, traceroute, true,
tty, udhcpc, umount, uname, uniq, unix2dos, unlzma, unxz, unzip,
uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch,
watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat
BusyBox v1.17.4 (2010-12-23 12:24:48 MSK) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
age: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, addgroup, adduser, ar, arping, ash, awk, basename, bunzip2,
bzcat, cat, catv, chattr, chgrp, chmod, chown, chroot, chrt, chvt,
cksum, clear, cmp, cp, cpio, crond, crontab, cut, date, dc, dd,
deallocvt, delgroup, deluser, devmem, df, diff, dirname, dmesg, dnsd,
dnsdomainname, dos2unix, du, dumpkmap, echo, egrep, eject, env,
ether-wake, expr, false, fdflush, fdformat, fgrep, find, fold, free,
freeramdisk, fsck, fuser, getopt, getty, grep, gunzip, gzip, halt,
hdparm, head, hexdump, hostid, hostname, hwclock, id, ifconfig, ifdown,
ifup, inetd, init, insmod, install, ip, ipaddr, ipcrm, ipcs, iplink,
iproute, iprule, iptunnel, kill, killall, killall5, klogd, last,
length, less, linux32, linux64, linuxrc, ln, loadfont, loadkmap,
logger, login, logname, losetup, ls, lsattr, lsmod, lspci, lsusb,
lzcat, lzma, makedevs, md5sum, mdev, mesg, microcom, mkdir, mkfifo,
mknod, mkswap, mktemp, modprobe, more, mount, mountpoint, mt, mv,
nameif, netstat, nice, nohup, nslookup, od, openvt, passwd, patch,
pidof, ping, pipe_progress, pivot_root, poweroff, printenv, printf, ps,
pwd, rdate, readlink, readprofile, realpath, reboot, renice, reset,
resize, rm, rmdir, rmmod, route, run-parts, runlevel, sed, seq,
setarch, setconsole, setkeycodes, setlogcons, setsid, sh, sha1sum,
sha256sum, sha512sum, sleep, sort, start-stop-daemon, strings, stty,
su, sulogin, swapoff, swapon, switch_root, sync, sysctl, syslogd, tail,
tar, tee, telnet, test, tftp, time, top, touch, tr, traceroute, true,
tty, udhcpc, umount, uname, uniq, unix2dos, unlzma, unxz, unzip,
uptime, usleep, uudecode, uuencode, vconfig, vi, vlock, watch,
watchdog, wc, wget, which, who, whoami, xargs, xz, xzcat, yes, zcat
И еще вопрос.
После первой прошивки rootfs.jffs2 в NAND первый запуск проходит без ошибок.
А после первой хардварной перезагрузки, появляются дефекты файловой системы.
Выводится следующее:
Код
Empty flash at 0x01227854 ends at 0x01228000
Empty flash at 0x01230804 ends at 0x01231000
VFS: Mounted root (jffs2 filesystem) on device 31:0.
Freeing init memory: 124K
...
...
JFFS2 notice: (360) check_node_data: wrong data CRC in data node at 0x012307b8: read 0x186b259f, calculated 0xef3d92a5.
...
Welcome to Buildroot
buildroot login:
Empty flash at 0x01230804 ends at 0x01231000
VFS: Mounted root (jffs2 filesystem) on device 31:0.
Freeing init memory: 124K
...
...
JFFS2 notice: (360) check_node_data: wrong data CRC in data node at 0x012307b8: read 0x186b259f, calculated 0xef3d92a5.
...
Welcome to Buildroot
buildroot login:
Подскажите плиз как решить первую и вторую проблемы.
По поводу дефекта ФС. Исправит ли ситуацию переход на YAFFS2?