Welcome! Log In Create A New Profile

Advanced

Linux kernels 3.2 and 3.1.7 are broken!

Posted by Gary Dobson 
Gary Dobson
Linux kernels 3.2 and 3.1.7 are broken!
January 06, 2012 06:00AM
Is this the end of the road for Linux development on the Dockstar? Kernel 3.2 does not compile cleanly and 3.1.7 fails to load. Something has changed between 3.1.6 and 3.1.7!

Kernel 3.2 compiles cleanly - but fails to load - if the following command is issued in the kernel source directory:


sed -i "s/CONFIG_MTD=y/CONFIG_MTD=n/" .config


Does anyone actually build kernels for the the Dockstar anymore?
David Norris
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 06, 2012 04:00PM
Kernel 3.1.7 compiles cleanly and works OK.

This is the solution to get a working 3.2


Signed-off-by: Simon Glass <sjg [at] chromium>
---
arch/arm/include/asm/bug.h | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/arch/arm/include/asm/bug.h b/arch/arm/include/asm/bug.h
index 9abe7a0..fac79dc 100644
--- a/arch/arm/include/asm/bug.h
+++ b/arch/arm/include/asm/bug.h
@@ -32,7 +32,6 @@

#define __BUG(__file, __line, __value) \
do { \
- BUILD_BUG_ON(sizeof(struct bug_entry) != 12); \ <---- DELETE THIS LINE
asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n" \
".pushsection .rodata.str, \"aMS\", %progbits, 1\n" \
"2:\t.asciz " #__file "\n" \
--
1.7.3.1
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 09, 2012 06:26AM
David Norris Wrote:
-------------------------------------------------------
> Kernel 3.1.7 compiles cleanly and works OK.
>
> This is the solution to get a working 3.2
>
>
> Signed-off-by: Simon Glass
> ---
> arch/arm/include/asm/bug.h | 1 -
> 1 files changed, 0 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/include/asm/bug.h
> b/arch/arm/include/asm/bug.h
> index 9abe7a0..fac79dc 100644
> --- a/arch/arm/include/asm/bug.h
> +++ b/arch/arm/include/asm/bug.h
> @@ -32,7 +32,6 @@
>
> #define __BUG(__file, __line, __value) \
> do { \
> - BUILD_BUG_ON(sizeof(struct bug_entry) != 12); \
> <---- DELETE THIS LINE
> asm volatile("1:\t" BUG_INSTR_TYPE #__value "\n"
> \
> ".pushsection .rodata.str, \"aMS\", %progbits,
> 1\n" \
> "2:\t.asciz " #__file "\n" \
> --
> 1.7.3.1


In addition to removing the BUILD_BUG_ON feature, I also had to

/usr/local/codesourcery/arm-2011.03/bin/arm-none-linux-gnueabi-objcopy    -O binary -R .note -R .comment -S vmlinux vmlinux.bin

cp  vmlinux.bin vmlinux-3.2.0.bin

/usr/bin/mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0 -d /boot/vmlinux-3.2.0.bin /boot/uImage

For some reason my Dockstar refuses to boot with vmlinuz (the compressed image of vmlinux). At present I'm using Codesourcery 2011.03 GCC 4.5.3. I've just upgraded the compiler to Codesourcery 2011.09 to see if the situation is resolved.
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 09, 2012 07:02AM
Robert Mugabe Wrote:
-------------------------------------------------------
> David Norris Wrote:
> --------------------------------------------------
> -----
> > Kernel 3.1.7 compiles cleanly and works OK.
> >
> > This is the solution to get a working 3.2
> >
> >
> > Signed-off-by: Simon Glass
> > ---
> > arch/arm/include/asm/bug.h | 1 -
> > 1 files changed, 0 insertions(+), 1
> deletions(-)
> >
> > diff --git a/arch/arm/include/asm/bug.h
> > b/arch/arm/include/asm/bug.h
> > index 9abe7a0..fac79dc 100644
> > --- a/arch/arm/include/asm/bug.h
> > +++ b/arch/arm/include/asm/bug.h
> > @@ -32,7 +32,6 @@
> >
> > #define __BUG(__file, __line, __value) \
> > do { \
> > - BUILD_BUG_ON(sizeof(struct bug_entry) != 12);
> \
> > <---- DELETE THIS LINE
> > asm volatile("1:\t" BUG_INSTR_TYPE #__value
> "\n"
> > \
> > ".pushsection .rodata.str, \"aMS\", %progbits,
> > 1\n" \
> > "2:\t.asciz " #__file "\n" \
> > --
> > 1.7.3.1
>
>
> In addition to removing the BUILD_BUG_ON feature,
> I also had to
>
>
> /usr/local/codesourcery/arm-2011.03/bin/arm-none-l
> inux-gnueabi-objcopy -O binary -R .note -R
> .comment -S vmlinux vmlinux.bin
>
> cp vmlinux.bin vmlinux-3.2.0.bin
>
> /usr/bin/mkimage -A arm -O linux -T kernel -C
> none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0 -d
> /boot/vmlinux-3.2.0.bin /boot/uImage
>
>
> For some reason my Dockstar refuses to boot with
> vmlinuz (the compressed image of vmlinux). At
> present I'm using Codesourcery 2011.03 GCC
> 4.5.3. I've just upgraded the compiler to
> Codesourcery 2011.09 to see if the situation is
> resolved.

I upgraded the cross-compiler to Codesourcery 2011.09 - GCC 4.6.1, and am please to report that my Dockstar is able to boot Kernel 3.2.0 with a compressed vmlinux; that is, the the Dockstar will boot with vmlinuz.

I would recommend that users of the Codesourcery cross-compile environment upgrade to the latest version. Just amend the relevant section of the setup_codesourcery.sh shell script, and remember to use codesourcery-arm-2011.09.sh
to enter the cross-compile environment.



CCPREFIX='arm-none-linux-gnueabi-'
DLBASEPATH='http://www.codesourcery.com/public/gnu_toolchain/arm-none-linux-gnueabi';
## (arm-2011.09)
VERSION='arm-2011.09'
DLFILE='arm-2011.09-70-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2'
BINPATH="${INSTALLPATH}/${VERSION}/bin"
SCRIPTFILE="${SCRIPTPATH}/${SCRIPTPREFIX}${VERSION}.sh"
install_toolchain

Robert Madman Mugabe - Harare
native 3.1.9 fine, 3.2.1 not booting for me
January 17, 2012 04:59PM
Odd, irregular, strange... I rolled a perfectly fine 3.1.9 kernel on my dockstar (natively) ... but the same command structure set applied to 3.2.0 and 3.2.1 doesn't yield a booting kernel.

Anyone else see this behavior?


=============

Interesting... I backed away from a Debian-ish config and tried defconfig_kirkwood, with the same results.

=====================================================



Edited 2 time(s). Last edit at 01/17/2012 08:05PM by davygravy.
Robert Mugabe
Re: native 3.1.9 fine, 3.2.1 not booting for me
January 18, 2012 01:17PM
davygravy Wrote:
-------------------------------------------------------
> Odd, irregular, strange... I rolled a
> perfectly fine 3.1.9 kernel on my dockstar
> (natively) ... but the same command structure set
> applied to 3.2.0 and 3.2.1 doesn't yield a booting
> kernel.
>
> Anyone else see this behavior?
>
>
> =============
>
> Interesting... I backed away from a Debian-ish
> config and tried defconfig_kirkwood, with the same
> results.

I cross-compiled Kernel 3.2.0 using Codesourcery 2011.09 - GCC 4.6.1 and it compiles cleanly (after removing the build_bug) and yields a booting kernel, the only problem is that there are some "system misalignments":

cat /proc/cpu/alignment
User: 0
System: 1227
Skipped: 0
Half: 0
Word: 1227
DWord: 0
Multi: 0
User faults: 2 (fixup)


I also cross-compiled Kernel 3.2.1; it compiles cleanly but fails to boot: something about a missing device. Kernel 3.2.x in my opinion is not worth the trouble: Linux release quality has slipped in recent times. The relevant people were informed about the compile problems as early as 3.2-rc1, but no action was taken.

I will resume cross-compiling kernels when my JTAG arrives: two of my six Dockstars died when I followed someone's advise to check the NAND memory for errors!

Robert Madman Mugagbe - Harare
Re: native 3.1.9 fine, 3.2.1 not booting for me
January 18, 2012 05:46PM
Mugabe, thanks for the confirmation... I tried neither netconsole nor serial, but I suppose they would have spelled it out for me.

I guess I'll dig for some clues about the problems w/ 3.2.x and watch for posts about possible fixes.

Yeah, 3.1.9 is fine for me, now.

=====================================================
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 19, 2012 06:36PM
Linux debian 3.1.10-kirkwood #1 Thu Jan 19 06:14:30 UTC 2012 armv5tel GNU/Linux
3.1.x is fine... still no fix for 3.2.x, from what I've seen.

=====================================================
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 20, 2012 03:04PM
It may be informative and telling to watch this: http://packages.debian.org/sid/linux-image-kirkwood

=====================================================



Edited 1 time(s). Last edit at 01/21/2012 10:37AM by davygravy.
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 22, 2012 10:56AM
Kernel 3.3.0-rc1 compiles cleanly, but will only load if an uncompressed vmlinuz kernel (boot) image is used. There are a few system alignment traps (not really an issue.)

I don't think the failure to boot an uncompressed vmlinuz is actually a Linux kernel issue; it could be a problem with Jeff's uboot and the kernel decompressor used, or it could be a problem with my particular brand of USB boot stick. Having said that, something has fundamentally change in kernel's 3.2 and 3.3.

Robert Madman Muagabe - Harare
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 22, 2012 11:25AM
Yes to the 3.3.0-rc1 behavior...
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.0-rc1-kirkwood
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1626136 Bytes = 1.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.3.0-rc1-kirkwood
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5778790 Bytes = 5.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

(then nothing)

Is the uImage compressed w/ gzip or w/ lzma?

My guess is that it is not your USB flashdrive ... I'm using a FreeAgent (usb-sata), and seeing the same behavior that you mention.

=====================================================



Edited 1 time(s). Last edit at 01/22/2012 11:29AM by davygravy.
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 22, 2012 11:55AM
VMLinuz is compressed with either LZMA or BZIP2; either way a very small decompression stub is included in the resulting image. The stub decompresses the kernel code, on some systems printing dots to the console to indicate progress, and then continues the boot process. So, the problem - it would appear - is not with Jeff's decompression code - since it is not used, but with the latest Linux kernels' image decompression routine with respect to the (Dockstar) ARM platform. The problem can be surmounted by using an uncompressed boot kernel image.


Robert Madman Muagabe - Harare
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 22, 2012 03:22PM
http://archlinuxarm.org/forum/viewtopic.php?f=18&t=2314 ... a few users @ archlinuxarm are struggling w/ this as well...

=====================================================
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 22, 2012 09:01PM
OK not a full boot but much closer... I upgraded my CodeSoucery toolchain to 11.9, did something different w the config and then ran make uImage. The resulting uImage did partially but stopped when it couldn't find the accompanying modules for 3.3.0rc1

I'm trying it now on my dockstar w the same config.

=====================================================



Edited 1 time(s). Last edit at 01/23/2012 09:49PM by davygravy.
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 23, 2012 07:28PM
I'm not sure but it may be some sort of change in udev...
   14.152349] Initializing network drop monitor service
[   14.158004] Freeing init memory: 140K
Loading, please wait...
[   14.201072] udevd[48]: starting version 175
Begin: Loading essential drivers ... FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/sda1 does not exist.  Dropping to a shell!
FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory

the modules.dep file is present, but it isn't seeing /dev/sda, so it never gets a chance to pull in the modules from /dev/sda1

=====================================================
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 24, 2012 05:45PM
yet another ... http://www.plugcomputer.org/plugforum/index.php?topic=6029.0

no joy yet ...

=====================================================
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 25, 2012 03:40PM
The kernel compression type is defined in .config, the default type is LZMA. I've recompiled lzma from source and have also compiled U-boot's mkimage from the latest source. I configured a 3.3.0-rc1 kernel to produce a bzip2 and a lzma compressed kernel image: neither of these kernels would boot:


## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.0-rc1
   Image Type:   ARM Linux Kernel Image (lzma compressed)
   Data Size:    1623768 Bytes = 1.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6302938 Bytes = 6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Unimplemented compression type 3
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x1100000
Scanning JFFS2 FS: ........ done.
### JFFS2 load complete: 524288 bytes load

A successful boot was only achieved when an uncompressed kernel image was written (using mkimage) to uImage. Is it possible that the problem is with U-boot?



[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.0-rc1-dockstar (root@umgunga) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 Sun Jan 22 14:41:44 GMT 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c040cb3c, node_mem_map c0472000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 119200k/119200k available, 11872k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03bfaf8   (3807 kB)
[    0.000000]       .init : 0xc03c0000 - 0xc03e2000   ( 136 kB)
[    0.000000]       .data : 0xc03e2000 - 0xc040ef28   ( 180 kB)
[    0.000000]        .bss : 0xc040ef4c - 0xc0471dc8   ( 396 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    4.708181] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    4.798116] pid_max: default: 32768 minimum: 301
[    4.798215] Security Framework initialized
[    4.798232] SELinux:  Disabled at boot.
[    4.798275] Mount-cache hash table entries: 512
[    4.798548] Initializing cgroup subsys cpuacct
[    4.798559] Initializing cgroup subsys devices
[    4.798569] Initializing cgroup subsys freezer
[    4.798577] Initializing cgroup subsys net_cls
[    4.798623] CPU: Testing write buffer coherency: ok
[    4.798836] Setting up static identity map for 0x2bb408 - 0x2bb444
[    4.800623] print_constraints: dummy:
[    4.800787] NET: Registered protocol family 16
[    4.801203] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    4.801217] Feroceon L2: Cache support initialised.
[    4.801527] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[    4.801550]   final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[    4.803392] bio: create slab <bio-0> at 0
[    4.803684] vgaarb: loaded
[    4.804131] Switching to clocksource orion_clocksource
[    4.813071] NET: Registered protocol family 2
[    4.813294] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    4.813893] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    4.813993] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    4.814052] TCP: Hash tables configured (established 4096 bind 4096)
[    4.814062] TCP reno registered
[    4.814072] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    4.814094] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    4.814334] NET: Registered protocol family 1
[    4.814368] PCI: CLS 0 bytes, default 32
[    4.814549] Unpacking initramfs...
[    5.297452] Freeing initrd memory: 6152K
[    5.297467] NetWinder Floating Point Emulator V0.97 (double precision)
[    5.297966] audit: initializing netlink socket (disabled)
[    5.298011] type=2000 audit(0.580:1): initialized
[    5.306202] VFS: Disk quotas dquot_6.5.2
[    5.306439] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    5.306553] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    5.307107] msgmni has been set to 244
[    5.308076] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    5.308090] io scheduler noop registered
[    5.308097] io scheduler deadline registered
[    5.308130] io scheduler cfq registered (default)
[    5.308188] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    5.308222] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    5.344211] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    5.384208] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    5.424203] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    5.464203] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    5.464441] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.484738] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    5.919466] console [ttyS0] enabled
[    5.923724] ONFI flash detected
[    5.926990] ONFI param page 0 valid
[    5.930498] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
[    5.938210] Scanning device for bad blocks
[    6.080907] Bad eraseblock 1866 at 0x00000e940000
[    6.089906] Bad eraseblock 1924 at 0x00000f080000
[    6.103779] 4 cmdlinepart partitions found on MTD device orion_nand
[    6.110082] Creating 4 MTD partitions on "orion_nand":
[    6.115257] 0x000000000000-0x000000100000 : "u-boot"
[    6.120809] 0x000000100000-0x000000500000 : "uImage"
[    6.126350] 0x000000500000-0x000002500000 : "rootfs"
[    6.131876] 0x000002500000-0x000010000000 : "data"
[    6.137781] mousedev: PS/2 mouse device common for all mice
[    7.144183] rtc-mv rtc-mv: internal RTC not ticking
[    7.149164] i2c /dev entries driver
[    7.152797] cpuidle: using governor ladder
[    7.156997] cpuidle: using governor menu
[    7.161029] Registered led device: dockstar:green:health
[    7.161090] Registered led device: dockstar:orange:misc
[    7.161944] TCP cubic registered
[    7.165205] NET: Registered protocol family 17
[    7.169679] Registering the dns_resolver key type
[    7.174442] Gating clock of unused units
[    7.174450] before: 0x00dfc3fd
[    7.174458]  after: 0x00c701c9
[    7.174506] registered taskstats version 1
[    7.179219] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    7.186136] Freeing init memory: 136K
[    7.301147] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    7.402007] usbcore: registered new interface driver usbfs
[    7.458379] mv643xx_eth smi: probed
[    7.472593] usbcore: registered new interface driver hub
[    7.478676] usbcore: registered new device driver usb
[    7.486843] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.499892] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:10:75:00:00:00
[    7.508804] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    7.514130] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    7.554216] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    7.574172] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    7.580606] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    7.587446] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    7.594706] usb usb1: Product: Marvell Orion EHCI
[    7.599432] usb usb1: Manufacturer: Linux 3.3.0-rc1-dockstar ehci_hcd
[    7.605910] usb usb1: SerialNumber: orion-ehci.0
[    7.611290] hub 1-0:1.0: USB hub found
[    7.615093] hub 1-0:1.0: 1 port detected
[    7.934179] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.085508] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    8.092244] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    8.099423] usb 1-1: Product: USB2.0 Hub
[    8.105360] hub 1-1:1.0: USB hub found
[    8.111897] hub 1-1:1.0: 4 ports detected
[    8.394532] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    8.505008] usb 1-1.1: New USB device found, idVendor=0781, idProduct=5567
[    8.511920] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.519274] usb 1-1.1: Product: Cruzer Blade
[    8.523560] usb 1-1.1: Manufacturer: SanDisk
[    8.527879] usb 1-1.1: SerialNumber: 11111111111111111
[    8.554255] SCSI subsystem initialized
[    8.562280] Initializing USB Mass Storage driver...
[    8.567501] scsi0 : usb-storage 1-1.1:1.0
[    8.572812] usbcore: registered new interface driver usb-storage
[    8.578897] USB Mass Storage support registered.
[    9.575096] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0 ANSI: 2
[    9.596554] sd 0:0:0:0: [sda] 7837696 512-byte logical blocks: (4.01 GB/3.73 GiB)
[    9.605278] sd 0:0:0:0: [sda] Write Protect is off
[    9.610092] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[    9.610778] sd 0:0:0:0: [sda] No Caching mode page present
[    9.616307] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.626279] sd 0:0:0:0: [sda] No Caching mode page present
[    9.631794] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.640535]  sda: sda1 sda2
[    9.647154] sd 0:0:0:0: [sda] No Caching mode page present
[    9.652670] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.658807] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   17.729296] EXT2-fs (sda1): warning: mounting ext3 filesystem as ext2
[   18.453371] udev[149]: starting version 164
[   19.218984] Adding 698820k swap on /dev/sda2.  Priority:-1 extents:1 across:698820k
[   20.275012] NET: Registered protocol family 10
[   20.479520] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   21.753794] sshd (619): /proc/619/oom_adj is deprecated, please use /proc/619/oom_score_adj instead.
[   22.102824] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   22.112856] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   22.959470] GRE over IPv4 demultiplexor driver
[   23.011711] PPP generic driver version 2.4.2
[   23.030077] NET: Registered protocol family 24
[   23.048748] PPTP driver version 0.8.5
[   23.219378] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   23.343888] Bridge firewalling registered
[   23.386635] device eth0 entered promiscuous mode
[   23.515880] ADDRCONF(NETDEV_UP): br0: link is not ready
[   25.013696] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   25.023691] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   25.030194] br0: port 1(eth0) entering forwarding state
[   25.035468] br0: port 1(eth0) entering forwarding state
[   25.040849] ADDRCONF(NETDEV_CHANGE): br0: link becomes ready
[   35.414158] eth0: no IPv6 routers present
[   35.454154] br0: no IPv6 routers present
root@zimbabwe:~#


Robert Madman Mugabe - Harare
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 25, 2012 05:10PM
@Mugabe, could you please share your .config w/ us (me!). I want to replicate that ... actually to see also if the compressed and uncompressed kernels will boot on my PogPlugV2.


Also, what version of module init tools are you running? I see you have v164 for udev.

=====================================================



Edited 1 time(s). Last edit at 01/25/2012 05:54PM by davygravy.
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 25, 2012 06:43PM
.config for Kernel 3.3-rc1 (Cookies and java script!)

Uncompressed kernel boot image (if not done from .config)

Cross compile environment (amend for native compile)
/usr/local/codesourcery/arm-2011.09/bin/arm-none-linux-gnueabi-objcopy    -O binary -R .note -R .comment -S vmlinux vmlinux.bin

cp  vmlinux.bin vmlinux-3.3.0-rc1.bin


On the Dockstar (amend if mounted)
/usr/bin/mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 -n Linux-3.3.0-rc1 -d /boot/vmlinux-3.3.0-rc1.bin /boot/uImage




Robert Madman Mugabe - Harare
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 25, 2012 10:45PM
thank you! will try this tomorrow after work!

==================

couldn't wait ...

oading file "/boot/uInitrd" from usb device 0:1 (usbda1)
5739979 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.0-rc1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4222796 Bytes = 4 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.1.10-kirkwood
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5739915 Bytes = 5.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.0-rc1 (root@bitbaker64) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 Wed Jan 25 22:50:46 CST 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype= mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 119748k/119748k available, 11324k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03bfaf8   (3807 kB)
[    0.000000]       .init : 0xc03c0000 - 0xc03e2000   ( 136 kB)
[    0.000000]       .data : 0xc03e2000 - 0xc040ef28   ( 180 kB)
[    0.000000]        .bss : 0xc040ef4c - 0xc0471dc8   ( 396 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    5.854505] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    5.944439] pid_max: default: 32768 minimum: 301
[    5.944539] Security Framework initialized
[    5.944557] SELinux:  Disabled at boot.
[    5.944600] Mount-cache hash table entries: 512
[    5.944872] Initializing cgroup subsys cpuacct
[    5.944884] Initializing cgroup subsys devices
[    5.944893] Initializing cgroup subsys freezer
[    5.944901] Initializing cgroup subsys net_cls
[    5.944947] CPU: Testing write buffer coherency: ok
[    5.945160] Setting up static identity map for 0x2bb408 - 0x2bb444
[    5.946947] print_constraints: dummy: 
[    5.947111] NET: Registered protocol family 16
[    5.947530] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    5.947543] Feroceon L2: Cache support initialised.
[    5.949712] bio: create slab <bio-0> at 0
[    5.949999] vgaarb: loaded
[    5.950443] Switching to clocksource orion_clocksource
[    5.959368] NET: Registered protocol family 2
[    5.959593] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    5.960194] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    5.960293] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    5.960352] TCP: Hash tables configured (established 4096 bind 4096)
[    5.960361] TCP reno registered
[    5.960371] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    5.960394] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    5.960633] NET: Registered protocol family 1
[    5.960848] Unpacking initramfs...
[    6.428843] Freeing initrd memory: 5604K
[    6.428857] NetWinder Floating Point Emulator V0.97 (double precision)
[    6.429358] audit: initializing netlink socket (disabled)
[    6.429400] type=2000 audit(0.560:1): initialized
[    6.437616] VFS: Disk quotas dquot_6.5.2
[    6.437856] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    6.437970] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    6.438522] msgmni has been set to 244
[    6.439495] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    6.439509] io scheduler noop registered
[    6.439516] io scheduler deadline registered
[    6.439547] io scheduler cfq registered (default)
[    6.439606] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    6.439639] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    6.470522] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    6.510516] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    6.550515] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    6.590515] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    6.590759] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    6.611053] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    7.044902] console [ttyS0] enabled
[    7.049141] ONFI flash detected
[    7.052402] ONFI param page 0 valid
[    7.055909] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
[    7.063613] Scanning device for bad blocks
[    7.219796] 4 cmdlinepart partitions found on MTD device orion_nand
[    7.226102] Creating 4 MTD partitions on "orion_nand":
[    7.231277] 0x000000000000-0x000000100000 : "u-boot"
[    7.236822] 0x000000100000-0x000000500000 : "uImage"
[    7.242382] 0x000000500000-0x000002500000 : "rootfs"
[    7.247908] 0x000002500000-0x000010000000 : "data"
[    7.253806] mousedev: PS/2 mouse device common for all mice
[    8.260494] rtc-mv rtc-mv: internal RTC not ticking
[    8.265471] i2c /dev entries driver
[    8.269103] cpuidle: using governor ladder
[    8.273304] cpuidle: using governor menu
[    8.278251] TCP cubic registered
[    8.281513] NET: Registered protocol family 17
[    8.285985] Registering the dns_resolver key type
[    8.290812] registered taskstats version 1
[    8.295521] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    8.302431] Freeing init memory: 136K
Loading, please wait...
modprobe: FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory

mount: No such device
W: devtmpfs not available, falling back to tmpfs for /dev
Begin: Loading essential drivers ... FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory
done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Waiting for root file system ... done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/sda1 does not exist.  Dropping to a shell!
FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/3.3.0-rc1/modules.dep: No such file or directory
(initramfs) halt
[   68.361708] System halted.

I've double-checked and /lib/modules/3.3.0-rc1/modules.dep is indeed there, is readable and has the expected contents. This is a wheezy installation, so I'm going to try to roll back to the module-init-tools that is in squeeze.

----------------------------------------------

I've rebuilt my initramfs so that it has older udev and modinittools in it... that didn't get me any further. Also, tried declaring my usb_rootfstype as ext2 (same as yours)... still no go.

=====================================================



Edited 2 time(s). Last edit at 01/26/2012 12:20AM by davygravy.
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 26, 2012 06:15AM
Debootstrapped wheezy and installed kernel 3.3.0-rc1, used the same config as previous installs and used an uncompress u-boot kernel image: system boots cleanly. uImage and uInitrd were created under a chrooted environment, therefore, the latest wheezy u-boot mkimage tools were used. Your problems could be due to upgrading squeeze to wheezy. Follow Vlad's guide and replace any reference to squeeze with wheezy for a virgin install of wheezy.


[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 3.3.0-rc1-dockstar (root@seagate) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 Sun Jan 22 14:41:44 GMT 2012
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Seagate FreeAgent DockStar
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c040cb3c, node_mem_map c0472000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 120532k/120532k available, 10540k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc03bfaf8   (3807 kB)
[    0.000000]       .init : 0xc03c0000 - 0xc03e2000   ( 136 kB)
[    0.000000]       .data : 0xc03e2000 - 0xc040ef28   ( 180 kB)
[    0.000000]        .bss : 0xc040ef4c - 0xc0471dc8   ( 396 kB)
[    0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:114
[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: orion_gpio0
[    0.000000] gpiochip_add: registered GPIOs 32 to 49 on device: orion_gpio1
[    0.000000] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474ms
[    0.000000] Console: colour dummy device 80x30
[    6.892247] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    6.982180] pid_max: default: 32768 minimum: 301
[    6.982279] Security Framework initialized
[    6.982296] SELinux:  Disabled at boot.
[    6.982339] Mount-cache hash table entries: 512
[    6.982613] Initializing cgroup subsys cpuacct
[    6.982624] Initializing cgroup subsys devices
[    6.982633] Initializing cgroup subsys freezer
[    6.982641] Initializing cgroup subsys net_cls
[    6.982687] CPU: Testing write buffer coherency: ok
[    6.982901] Setting up static identity map for 0x2bb408 - 0x2bb444
[    6.984685] print_constraints: dummy:
[    6.984847] NET: Registered protocol family 16
[    6.985263] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    6.985277] Feroceon L2: Cache support initialised.
[    6.985588] initial MPP regs: 01111111 11113322 00001111 00100000 00000000 00000000 00000000
[    6.985611]   final MPP regs: 01111111 11113322 00001111 00000000 00000000 00000000 00000000
[    6.987443] bio: create slab <bio-0> at 0
[    6.987733] vgaarb: loaded
[    6.988178] Switching to clocksource orion_clocksource
[    6.997122] NET: Registered protocol family 2
[    6.997346] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    6.997947] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    6.998046] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    6.998105] TCP: Hash tables configured (established 4096 bind 4096)
[    6.998115] TCP reno registered
[    6.998125] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    6.998147] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    6.998385] NET: Registered protocol family 1
[    6.998417] PCI: CLS 0 bytes, default 32
[    6.998598] Unpacking initramfs...
[    7.395678] Freeing initrd memory: 4820K
[    7.395693] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.396180] audit: initializing netlink socket (disabled)
[    7.396222] type=2000 audit(0.490:1): initialized
[    7.404374] VFS: Disk quotas dquot_6.5.2
[    7.404613] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.404742] JFFS2 version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    7.405296] msgmni has been set to 244
[    7.406256] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[    7.406270] io scheduler noop registered
[    7.406278] io scheduler deadline registered
[    7.406309] io scheduler cfq registered (default)
[    7.406368] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    7.406403] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    7.438257] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    7.478255] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[    7.518251] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[    7.558251] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[    7.558490] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.578783] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    8.013505] console [ttyS0] enabled
[    8.017746] ONFI flash detected
[    8.021011] ONFI param page 0 valid
[    8.024521] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08AAD)
[    8.032233] Scanning device for bad blocks
[    8.174931] Bad eraseblock 1866 at 0x00000e940000
[    8.183928] Bad eraseblock 1924 at 0x00000f080000
[    8.197801] 4 cmdlinepart partitions found on MTD device orion_nand
[    8.204104] Creating 4 MTD partitions on "orion_nand":
[    8.209279] 0x000000000000-0x000000100000 : "u-boot"
[    8.214836] 0x000000100000-0x000000500000 : "uImage"
[    8.220374] 0x000000500000-0x000002500000 : "rootfs"
[    8.225914] 0x000002500000-0x000010000000 : "data"
[    8.231807] mousedev: PS/2 mouse device common for all mice
[    9.238229] rtc-mv rtc-mv: internal RTC not ticking
[    9.243204] i2c /dev entries driver
[    9.246837] cpuidle: using governor ladder
[    9.251039] cpuidle: using governor menu
[    9.255069] Registered led device: dockstar:green:health
[    9.255130] Registered led device: dockstar:orange:misc
[    9.255983] TCP cubic registered
[    9.259245] NET: Registered protocol family 17
[    9.263718] Registering the dns_resolver key type
[    9.268475] Gating clock of unused units
[    9.268484] before: 0x00dfc3fd
[    9.268491]  after: 0x00c701c9
[    9.268541] registered taskstats version 1
[    9.273243] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[    9.280159] Freeing init memory: 136K
[    9.385555] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.427212] usbcore: registered new interface driver usbfs
[    9.462517] mv643xx_eth smi: probed
[    9.496904] mv643xx_eth_port mv643xx_eth_port.0: eth0: port 0 with MAC address 00:10:75:00:00:00
[    9.512832] usbcore: registered new interface driver hub
[    9.537136] usbcore: registered new device driver usb
[    9.561474] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.568088] orion-ehci orion-ehci.0: Marvell Orion EHCI
[    9.621519] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    9.668251] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    9.688219] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    9.694234] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    9.701067] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.708331] usb usb1: Product: Marvell Orion EHCI
[    9.713056] usb usb1: Manufacturer: Linux 3.3.0-rc1-dockstar ehci_hcd
[    9.719535] usb usb1: SerialNumber: orion-ehci.0
[    9.724923] hub 1-0:1.0: USB hub found
[    9.728725] hub 1-0:1.0: 1 port detected
[   10.048226] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   10.199625] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[   10.206358] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[   10.213537] usb 1-1: Product: USB2.0 Hub
[   10.221539] hub 1-1:1.0: USB hub found
[   10.231879] hub 1-1:1.0: 4 ports detected
[   10.508522] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   10.651251] usb 1-1.1: New USB device found, idVendor=067b, idProduct=2515
[   10.658158] usb 1-1.1: New USB device strings: Mfr=1, Product=3, SerialNumber=0
[   10.665512] usb 1-1.1: Product: USB Embedded Hub
[   10.670173] usb 1-1.1: Manufacturer: Prolific Technology Inc.
[   10.679935] hub 1-1.1:1.0: USB hub found
[   10.688265] hub 1-1.1:1.0: 1 port detected
[   10.968401] usb 1-1.1.1: new high-speed USB device number 4 using orion-ehci
[   11.091376] usb 1-1.1.1: New USB device found, idVendor=067b, idProduct=2517
[   11.098471] usb 1-1.1.1: New USB device strings: Mfr=1, Product=4, SerialNumber=0
[   11.105989] usb 1-1.1.1: Product: USB Mass Storage Device
[   11.111441] usb 1-1.1.1: Manufacturer: Prolific Technology Inc.
[   11.136325] SCSI subsystem initialized
[   11.144459] Initializing USB Mass Storage driver...
[   11.149693] scsi0 : usb-storage 1-1.1.1:1.0
[   11.155309] usbcore: registered new interface driver usb-storage
[   11.161369] USB Mass Storage support registered.
[   12.159841] scsi 0:0:0:0: Direct-Access     Corsair  Flash Voyager    1.00 PQ: 0 ANSI: 0 CCS
[   12.183046] sd 0:0:0:0: [sda] 2031616 512-byte logical blocks: (1.04 GB/992 MiB)
[   12.193521] sd 0:0:0:0: [sda] Write Protect is off
[   12.198351] sd 0:0:0:0: [sda] Mode Sense: 00 26 00 00
[   12.201395] sd 0:0:0:0: [sda] No Caching mode page present
[   12.206908] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   12.222146] sd 0:0:0:0: [sda] No Caching mode page present
[   12.227661] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   12.309896]  sda: sda1 sda2
[   12.321146] sd 0:0:0:0: [sda] No Caching mode page present
[   12.326659] sd 0:0:0:0: [sda] Assuming drive cache: write through
[   12.332798] sd 0:0:0:0: [sda] Attached SCSI removable disk
[   22.574337] udevd[157]: starting version 175
[   27.632048] NET: Registered protocol family 10
[   27.818989] ADDRCONF(NETDEV_UP): eth0: link is not ready
[   29.490542] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   29.500514] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   39.918202] eth0: no IPv6 routers present
root@supaslug:~# uname -a
Linux supaslug 3.3.0-rc1-dockstar #1 Sun Jan 22 14:41:44 GMT 2012 armv5tel GNU/Linux
root@idiamindada:~# exit
logout

Debian GNU/Linux wheezy/sid supaslug ttyS0

suncity login:

Robert Madman Mugabe - Harare
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 26, 2012 06:17AM
Hi,

@davygravy:

Your uInitrd is not update so the kernel can't find the correct modules path ^^.

So i'm french i can't explain you correctly but :

In file systeme is not mounted so i can't find "/lib/modules/3.3.0-rc1/modules.dep" on it because the kernel search it on your initramfs.

You have to recompile your initrid after your kernel.



Edited 1 time(s). Last edit at 01/26/2012 06:19AM by Val532.
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 26, 2012 06:54PM
kk, I see now... I don't know how I missed that... I must have been either sleeping or repressing the fact that this is Debian and the current setup needs an up-to-date initrd to function as planned... thanks for the guidance.

====================================

root@debian:~# uname -a
Linux debian 3.3.0-rc1-dockstar #1 Thu Jan 26 19:06:42 CST 2012 armv5tel GNU/Linux

gratitude @ Mugabe and val532 ...

I ended up doing a variation on what you two had suggested.

Used make-kpkg to create a .deb for the linux-image.
CONCURRENCY_LEVEL=8 make-kpkg  --rootcmd fakeroot  --arch armel  --cross-compile arm-none-linux-gnueabi- --append-to-version=-dockstar --revision=1.0 --initrd kernel_image
... creates the .deb in about 9 minutes on my 3.4GHz Quad Core.


Used Mugabe's objcopy command to create the vmlinux.bin ...

copied over both the linux-image.deb and the vmlinux.bin to my dockstar.

Used dpkg -i linux-image.deb to install it. But... then I copied over the vmlinux.bin to /boot and ran...
/usr/bin/mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 -n Linux-3.3.0-rc1 -d /boot/vmlinux-3.3.0-rc1.bin /boot/uImage

mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.3.3-dockstar -d /boot/initrd.img-3.3.0-rc1-dockstar /boot/uInitrd

and rebooted...

...viola... again, thank you both!
(that was a good learning experience)

=====================================================



Edited 2 time(s). Last edit at 01/26/2012 07:42PM by davygravy.
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 27, 2012 10:18AM
To compile the latest compat-wireless: to ./net/wireless/core.h in the compat-wireless-xxxx-xx-xx directory add:

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36))
#define br_port_exists(dev)	(dev->priv_flags & IFF_BRIDGE_PORT)
#else
#define br_port_exists(dev)	(dev->br_port)
#endif


AND


#include <linux/kconfig.h>
into /usr/src/linux-headers-3.3.0-rc1-dockstar/include/linux/netdevice.h (native compile from headers and assumes compat-wireless-2012-01-26/include/mach has been populated with arch/arm/mach-kirkwood/include/mach/*.h from the kernel source.)

If cross-compiling, #include <linux/kconfig.h> into ./include/linux/netdevice.h in the kernel source directory.

This is sometimes required when building compat-wireless with release candidate kernels.
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 27, 2012 04:30PM
I'm wondering if it would be easy to extract and decompress the kernel from the uImage or some other file that is already in the .deb ?

http://www.linuxquestions.org/questions/programming-9/how-to-obtain-image-from-zimage-824499/


????

=====================================================
Robert Mugabe
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 28, 2012 05:23AM
Wheezy's udev does not generate 70-persistent-net.rules

The problem is caused by a broken line in /lib/udev/rules.d/75-persistent-net-generator.rules


# ignore interfaces with locally administered or null MAC addresses
   # and VMWare, Hyper-V, KVM and Xen virtual interfaces
   ENV{MATCHADDR}=="?[2367abef]:*",        ENV{MATCHADDR}=""
   ENV{MATCHADDR}=="00:00:00:00:00:00",    ENV{MATCHADDR}=""
   ENV{MATCHADDR}=="00:0c:29:*|00:50:56:*|00:05:69:*|00:1C:14:*",
                                           ENV{MATCHADDR}=""
   ENV{MATCHADDR}=="00:15:5d:*",           ENV{MATCHADDR}=""
   ENV{MATCHADDR}=="52:54:00:*|54:52:00:*", ENV{MATCHADDR}=""
   ENV{MATCHADDR}=="00:16:3e:*",           ENV{MATCHADDR}=""

The lines in bold should read:

ENV{MATCHADDR}=="00:0c:29:*|00:50:56:*|00:05:69:*|00:1C:14:*", ENV{MATCHADDR}=""

Robert Madman Mugabe - Harare
Re: Linux kernels 3.2 and 3.1.7 are broken!
January 28, 2012 01:28PM
Yes, the rules, when generated or editted, must be only _one_ line.
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.


This doesn't have anything with the boot or kernel compression problems though, if I understand you, right?

=====================================================
Re: Linux kernels 3.2 and 3.1.7 are broken!
February 05, 2012 11:47AM
(yup, I submitted a bug report to both Debian for their packages, and upstream as well, to kernel.org)

OK, just to make it official, for the record... the "bad" has finally made it into Debian Sid...

http://packages.debian.org/unstable/kernel/linux-image-3.2.0-1-kirkwood


On my Dockstar:
cd /

wget http://ftp.us.debian.org/debian/pool/main/l/linux-2.6/linux-image-3.2.0-1-kirkwood_3.2.2-1_armel.deb

dpkg -i linux-image-3.2.0-1-kirkwood_3.2.2-1_armel.deb 

mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.2.0-1-kirkwood -d /boot/vmlinuz-3.2.0-1-kirkwood /boot/uImage

mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.2.0-1-kirkwood -d /boot/initrd.img-3.2.0-1-kirkwood /boot/uInitrd



From serial connection:
U-Boot 2010.09 (Oct 23 2010 - 11:49:22)
Marvell-Dockstar/Pogoplug by Jeff Doozan

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MiB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
(Re)start USB...                                                                
USB:   Register 10011 NbrPorts 1                                                
USB EHCI 1.00                                                                   
scanning bus for devices... 4 USB Device(s) found                               
       scanning bus for storage devices... 1 Storage Device(s) found            
Loading file "/rescueme" from usb device 0:1 (usbda1)                           
** File not found /rescueme                                                     
reading /rescueme.txt                                                           
                                                                                
** Unable to read "/rescueme.txt" from usb 0:1 **                               
Creating 1 MTD partitions on "nand0":                                           
0x000002500000-0x000010000000 : "mtd=3"                                         
UBI: attaching mtd1 to ubi0                                                     
UBI: physical eraseblock size:   131072 bytes (128 KiB)                         
UBI: logical eraseblock size:    129024 bytes                                   
UBI: smallest flash I/O unit:    2048                                           
UBI: sub-page size:              512                                            
UBI: VID header offset:          512 (aligned 512)                              
UBI: data offset:                2048                                           
UBI: attached mtd1 to ubi0                                                      
UBI: MTD device name:            "mtd=3"                                        
UBI: MTD device size:            219 MiB                                        
UBI: number of good PEBs:        1752                                           
UBI: number of bad PEBs:         0                                              
UBI: max. allowed volumes:       128                                            
UBI: wear-leveling threshold:    4096                                           
UBI: number of internal volumes: 1                                              
UBI: number of user volumes:     0                                              
UBI: available PEBs:             1731                                           
UBI: total number of reserved PEBs: 21                                          
UBI: number of PEBs reserved for bad PEB handling: 17                           
UBI: max/mean erase counter: 1/1                                                
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19          
Error reading superblock on volume 'ubi:rootfs'!                                
Loading file "/boot/uImage" from usb device 0:1 (usbda1)                        
1 bytes read                                                                    
Found bootable drive on usb 0:1                                                 
Loading file "/boot/uImage" from usb device 0:1 (usbda1)                        
1570456 bytes read                                                              
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)                       
6621782 bytes read                                                              
## Booting kernel from Legacy Image at 00800000 ...                             
   Image Name:   Linux-3.2.0-1-kirkwood                                         
   Image Type:   ARM Linux Kernel Image (uncompressed)                          
   Data Size:    1570392 Bytes = 1.5 MiB                                        
   Load Address: 00008000                                                       
   Entry Point:  00008000                                                       
   Verifying Checksum ... OK                                                    
## Loading init Ramdisk from Legacy Image at 01100000 ...                       
   Image Name:   initramfs-3.2.0-1-kirkwood                                     
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)                      
   Data Size:    6621718 Bytes = 6.3 MiB                                        
   Load Address: 00000000                                                       
   Entry Point:  00000000                                                       
   Verifying Checksum ... OK                                                    
   Loading Kernel Image ... OK                                                  
OK                                                                              
                                                                                
Starting kernel ...                                                             
                                                                                
Uncompressing Linux... done, booting the kernel.

=====================================================



Edited 1 time(s). Last edit at 02/05/2012 03:22PM by davygravy.
Re: Linux kernels 3.2 and 3.1.7 are broken!
February 05, 2012 08:09PM
When I try the above I get the following:
# dpkg -i linux-image-3.2.0-1-kirkwood_3.2.2-1_armel.deb
Selecting previously unselected package linux-image-3.2.0-1-kirkwood.
(Reading database ... 15828 files and directories currently installed.)
Unpacking linux-image-3.2.0-1-kirkwood (from linux-image-3.2.0-1-kirkwood_3.2.2-1_armel.deb) ...
dpkg: dependency problems prevent configuration of linux-image-3.2.0-1-kirkwood:
 linux-image-3.2.0-1-kirkwood depends on linux-base (>= 3~); however:
  Package linux-base is not installed.
 linux-image-3.2.0-1-kirkwood depends on initramfs-tools (>= 0.99~) | linux-initramfs-tool; however:
  Package initramfs-tools is not installed.
  Package linux-initramfs-tool is not installed.
dpkg: error processing linux-image-3.2.0-1-kirkwood (--install):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-3.2.0-1-kirkwood
I tried installing linux-base, initramfs-tools, and linux-initramfs-tool, but each seems to say that it needs one of the others or something else which needs one of the others. How do I proceed?
Re: Linux kernels 3.2 and 3.1.7 are broken!
February 06, 2012 05:59AM
First and foremost, do you have either netconsole or serial console access?

If not, I'd stop where you are... unless do you, you may end end up making your disk unbootable.

Otherwise, it looks like you have a dependency problem/conflict. You may want to read up on the apt-get command, and how to resolve dependencies within the Debian packaging system.

=====================================================
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: