kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* busybox shell doesn't come up or get stuck.. where should I look or how should I debug it?
@ 2022-08-12  8:32 Chan Kim
  2022-08-18  5:19 ` Chan Kim
  0 siblings, 1 reply; 4+ messages in thread
From: Chan Kim @ 2022-08-12  8:32 UTC (permalink / raw)
  To: kernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1542 bytes --]


Hi all,

I'm trying to boot linux with minimal config on our FPGA board which is
under development.
After months of trying (but I tried this intermittently) I think I'm about
to see the shell prompt.
(there was a bug in interconnect driver that I found yesterday, this caused
a long delay)

Anyway, when I run linux kernel on a qemu machine, the boot process ends
like this at the shell prompt.
(The echo '### INIT SCRIPT ###' was put in /init script which is in the
initramfs)
    
    Run /init as init process
    ### INIT SCRIPT ###
    mount: mounting none on /tmp failed: Invalid argument
    
    This boot took 2.12 seconds
    
    /bin/sh: can't access tty; job control turned off
    / # 
    / #

Now, when I run it on our FPGA board using u-boot, it ends like this.
    
    Run /init as init process
    ### INIT SCRIPT ###
    mount: mounting none on /tmp failed: Invalid argument
    
    This boot took 0.00 seconds
    
    /bin/sh: can't acce
    
So it seems this init_kernel thread executes /init and /init excutes /bin/sh
at the end.

this is the /init script.

	#!/bin/sh
	echo "### INIT SCRIPT ###"
	mkdir /proc /sys /tmp
	mount -t proc none /proc
	mount -t sysfs none /sys
	mount -t tmpfs none /tmp
	echo -e "\nThis boot took $(cut -d' ' -f1 /proc/uptime) seconds\n"

	#ifconfig eth0 10.0.2.15 netmask 255.255.255.0 up
	#route add default gw 10.0.2.2

	exec /bin/sh

Somehow the busybox applet /bin/sh is stuck somewhere.
Can anybody tell me where I should look? Or how to debug this?

Thanks in advance!

Chan Kim


[-- Attachment #1.2: Type: text/html, Size: 9983 bytes --]

[-- Attachment #2: Type: text/plain, Size: 170 bytes --]

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-19 11:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-12  8:32 busybox shell doesn't come up or get stuck.. where should I look or how should I debug it? Chan Kim
2022-08-18  5:19 ` Chan Kim
2022-08-18  6:02   ` Chan Kim
2022-08-19 11:50     ` Chan Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).