[U-Boot] U-boot configuration

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,

On Thu, 30 Nov 2017 13:21:24 +0000 (UTC) "A.W.C." bluestream@ymail.com wrote:
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?
Your kernel is already loaded (as you are in /bin/sh )... The only problem is with modules, which may not be loaded.
Try to mount manually stuff from inittab (sysfs, procfs), load needed modules (to handle file systems) and then mount them.
Regards, _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
participants (2)
-
A.W.C.
-
Lukasz Majewski