[U-Boot] U-boot configuration

A.W.C. bluestream at ymail.com
Thu Nov 30 13:21:24 UTC 2017


Hello,

Linux embedded file system (Linux v. 2.6.26.5) running on raw NAND flash, and use Full Image's RootFS.
I need to access to linux shell when Linux kernel already is fully loaded and make some changes.

U-boot> setenv bootargs console=ttyS1,115200n8 rootfstype=squashfs noalign half_image=0 verify=y single init=/bin/sh

BusyBox v1.10.2 (2017-08-02 14:07:25 CST) built-in shell (ash)
When I access to Busybox emergency shell, Linux kernel is not fully loaded, actual root partition is not mounted yet, the available commands are very limited.

BusyBox v1.10.2 (2015-09-06 10:58:05 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
# help

Built-in commands:
-------------------
    . : [ [[ alias bg break cd chdir continue echo eval exec exit
    export false fg hash help jobs let local pwd read readonly return
    set shift source test times trap true type ulimit umask unalias
    unset wait

# fdisk -l
/bin/sh: fdisk: not found
#

# mount
mount: no /proc/mounts
#

How to get Linux Kernel fully loaded, and MTD-devices mounted, at the same time having full access to file system from Busybox emergency shell?


Regards,


More information about the U-Boot mailing list