Re: [Balloon] What happened to setup? --> not booting with i…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Charles Manning
Date:  
To: balloon
CC: Wookey
Old-Topics: Re: [Balloon] What happened to setup?
Subject: Re: [Balloon] What happened to setup? --> not booting with initrd
On Thursday 20 May 2010 05:47:37 Wookey wrote:
> +++ Charles Manning [2010-05-19 09:21 +1200]:
> > Building happens...
>
> Hooray! :-)
>
> > But I now have problems trying to load the fs off the USB stick because
> > there is no setup.
> > setup
> >
> > ooops not there
>
> Hmm, we've not seen that here.
>
> Which svn vintage are you using?
>
> r1062 built and tested nicely for me here for both base build (which
> you've been testing, and -tcl-sl40 variant)


svn info tells me I have r1062

I did a make

then make dist

After a "boot flash"

balloon:~# ls /lib/modules/
2.6.29.1-pxa270
balloon:~# uname -a
Linux balloon 2.6.31-pxa270 #2 Mon May 17 17:55:32 NZST 2010 armv5tel
GNU/Linux
balloon:~# cat /lib/modules/2.6.29.1-pxa270/modules.dep
/lib/modules/2.6.29.1-pxa270/kernel/sound/usb/snd-usb-lib.ko: /lib/modules/2.6.29.1-pxa270/kernel/drivers/usb/core/usbcore.ko /o
/lib/modules/2.6.29.1-pxa270/kernel/sound/usb/snd-usb-audio.ko: /lib/modules/2.6.29.1-pxa270/kernel/sound/core/snd-pcm.ko /lib/o
/lib/modules/2.6.29.1-pxa270/kernel/sound/soundcore.ko:
....

but sniffing around in distro/binaries shows that both the initrd and rootfs
have /lib/modules/2.6.31-pxa270

the stale 2.6.29 stuff is coming from a yaffs partition

It was my understanding that doing

utils/bbl --installer That loads up the kernel + initrd right?

followed by

boot flash That boots the kernel with initrd right?

would boot the initrd and deliver up the fresh 2.6.31 goods but that does not
seem to be happening. Closer inspection indicates that the bootloader starts
off thinking about initrd, then changes its mind.

.....
root_filesystem_name=initrd
Grabbed linuxargs, argc = 00000001
Using mach_type 00000405
setting boot parameters to
nointrd root=/dev/mtdblock1 init=/sbin/init /quiet console=ttyS2,115200
Making core tag at A0000100
.....

Full log below.

Can someone please explain what I should do using words of one syllable or
less?

Thanks

-- Charles

boot> boot flash

booting kernel from partition >kernel<
kernel partition base 50200000
kernel_magic=E1A00000
kernel_region_words[9]=016F2818
Linux ELF flash_imgstart=50200000 size=00400000 dest=A0000000 offset=00008000
MMU Control=00000079
MMU PIDVAM=00000000
copying Linux kernel ... done
A0008000: E1A00000
A0008004: E1A00000
A0008008: E1A00000
A000800C: E1A00000
A0008010: E1A00000
A0008014: E1A00000
A0008018: E1A00000
A000801C: E1A00000
A0008020: EA000002
A0008024: 016F2818
root_filesystem_name=initrd
Grabbed linuxargs, argc = 00000001
Using mach_type 00000405
setting boot parameters to
nointrd root=/dev/mtdblock1 init=/sbin/init /quiet console=ttyS2,115200
Making core tag at A0000100
Making cmdline tag at A0000114
Making mem32 tag at A00001CC
Making mem32 tag at A00001DC
command line is: nointrd root=/dev/mtdblock1 init=/sbin/init /quiet
console=ttyS2,115200 rootfstype=yaffs
linuxEntryPoint=A0008000
Booting Linux image
Uncompressing
Linux........................................................................................
Linux version 2.6.31-pxa270 (charles@qcore) (gcc version 4.3.2 (Debian
4.3.2-1.1) ) #2 Mon May 17 17:55:320
CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE), cr=0000397f
CPU: VIVT data cache, VIVT instruction cache
Machine: Balloon3
Memory policy: ECC disabled, Data cache writeback
Run Mode clock: 208.00MHz (*16)
Turbo Mode clock: 520.00MHz (*2.5, active)
Memory clock: 104.00MHz (/2)
System bus clock: 104.00MHz
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 64768
Kernel command line: nointrd root=/dev/mtdblock1 init=/sbin/init /quiet
console=ttyS2,115200 rootfstype=y
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 128MB 128MB = 256MB total
Memory: 256384KB available (2748K code, 203K data, 112K init, 0K highmem)
NR_IRQS:208
Console: colour dummy device 80x30
Calibrating delay loop... 519.37 BogoMIPS (lpj=2596864)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Initialising Balloon3
bio: create slab <bio-0> at 0
Switched to NOHz mode on CPU #0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
PXA CPU 27x max frequency not defined (pxa27x_maxfreq), assuming pxa271 with
416000kHz maxfreq
PXA CPU frequency change support initialized
NetWinder Floating Point Emulator V0.97 (double precision)
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
yaffs May 17 2010 16:33:00 Installing.
msgmni has been set to 501
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler deadline registered
io scheduler cfq registered
Console: switching to colour frame buffer device 60x40
Samosa device registration
Samosa bus registration
Samosa services initialised.
VHDL logic version (memread):00004F15
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 22) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 21) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 20) is a STUART
console [ttyS2] enabled
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V
8-bit)
4 NAND chips detected
Scanning device for bad blocks
Bad eraseblock 45 at 0x0000005a0000
Bad eraseblock 3091 at 0x000018260000
Bad eraseblock 4926 at 0x0000267c0000
Bad eraseblock 5598 at 0x00002bbc0000
Bad eraseblock 6734 at 0x0000349c0000
cmdlinepart partition parsing not available
Creating 2 MTD partitions on "balloon3-nand":
0x000000000000-0x000000400000 : "Boot"
0x000000400000-0x000040000000 : "Root fs"
mice: PS/2 mouse device common for all mice
pxa-rtc pxa-rtc: rtc core: registered pxa-rtc as rtc0
cpuidle: using governor ladder
cpuidle: using governor menu
Registered led device: balloon3:green:idle
Registered led device: balloon3:green:nand
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
XScale iWMMXt coprocessor detected.
pxa-rtc pxa-rtc: setting system clock to 2000-01-01 00:00:08 UTC (946684808)
yaffs: dev is 32505857 name is "mtdblock1"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.1, "mtdblock1"
block 14 is bad
block 3060 is bad
block 4895 is bad
block 5567 is bad
block 6703 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:1.
Freeing init memory: 112K
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

INIT: version 2.86 booting
.udev/ already exists on the static /dev! (warning).
Starting the hotplug events dispatcher: udevd.
Synthesizing the initial hotplug events...done.
Waiting for /dev to be fully populated...done.
Setting the system clock.
Activating swap...done.
save exit: isCheckpointed 1
Checking root file system...fsck 1.41.3 (12-Oct-2008)
fsck: fsck.auto: not found
fsck: Error 2 while executing fsck.auto for /lib/init/rw/rootdev
done.
Setting the system clock.
Cleaning up ifupdown....
Loading kernel modules...FATAL: Could not
load /lib/modules/2.6.31-pxa270/modules.dep: No such file or diry
Checking file systems...fsck 1.41.3 (12-Oct-2008)
done.
Setting kernel variables (/etc/sysctl.conf)...done.
Mounting local filesystems...mount: /sys already mounted or /sys busy
mount: according to mtab, sysfs is already mounted on /sys
failed.
Activating swapfile swap...done.
Setting up networking....
Configuring network interfaces...Internet Systems Consortium DHCP Client
V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

SIOCSIFADDR: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

SIOCSIFADDR: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

eth0: ERROR while getting interface flags: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

eth0: ERROR while getting interface flags: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

Bind socket to interface: No such device
Failed to bring up eth0.
Internet Systems Consortium DHCP Client V3.1.1
Copyright 2004-2008 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/

modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

SIOCSIFADDR: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

SIOCSIFADDR: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

eth1: ERROR while getting interface flags: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

eth1: ERROR while getting interface flags: No such device
modprobe: FATAL: Could not load /lib/modules/2.6.31-pxa270/modules.dep: No
such file or directory

Bind socket to interface: No such device
Failed to bring up eth1.
done.
INIT: Entering runlevel: 2

Debian GNU/Linux 5.0 balloon ttyS2

balloon login: