Debian NetInstall Crash Upon Hardware Detect on C4 Rev. Board

I built a NetInstall SD Card per BeagleboardDebian Wiki instructions
using:

./mk_mmc.sh --mmc /dev/sdd --uboot beagle --distro squeeze --serial-
mode

The kernel booted fine and brought me to the NetInstall language
prompt. After selecting layout, the hardware detect was invoked, and
then the install crashed (USR0 heartbeat LED went dark). I enabled
Debug in /mnt, but no info there. Below is boot info as well as dmesg
before HARDWARE DETECT taken in an escape shell. I then reran
netinstall with the usb hub unplugged. The install ran through to DHCP
configure, at which time I aborted the install. The dmesg with no hub
appears as the last listing in this post. As I could only take these
snapshots in an escape shell, before crash, and a snapshot without the
hub, I don't think there is anything useful in these listings. The usb
hub has only a USB200M network adapter installed. I did not modify
mk_mmc.sh before running it. I also flashed X-Loader and u-boot
according to wiki instructions.

Using instructions from lirtex.com, back in 2009, I successfully built
a Debian Linux on a B series board with this same hub and adapter. The
lirtex instructions were more involved but did include a pull from an
rcn depository similar to
http://www.rcn-ee.com/deb/kernel/CC-beagle-v2.6.29-58cf2f1-oer31.1,
but with an older kernel back in 2009.

I would much prefer to use the wiki technique. To verify, I used a
second, new SD card, with the same results. The script needs
unformatted cards to finish successfully. Is there any way to make an
SD card look like a new unformatted card to the mk_mmc.sh script?
I'm running out of new SD cards!

Thanks,
Stan

####### BOOT PHASE ############

Texas Instruments X-Loader 1.5.0 (Jun 24 2011 - 01:31:59)
Beagle Rev C4
Reading boot sector
Loading u-boot.bin from mmc

U-Boot 2011.03-rc1-00000-g9a3cc57-dirty (Apr 04 2011 - 12:36:16)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 720 mHz
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 256 MiB
NAND: 256 MiB
MMC: OMAP SD/MMC: 0
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Beagle Rev C4
timed out in wait_for_bb: I2C_STAT=1000
No EEPROM on expansion board
Die ID #4c3a000400000000040365fa13017013
Hit any key to stop autoboot: 0
OMAP3 beagleboard.org #
reading uInitrd.net

8623350 bytes read
## Booting kernel from Legacy Image at 80300000 ...
   Image Name: 3.0.8-x3
   Image Type: ARM Linux Kernel Image (uncompressed)
   Data Size: 3330960 Bytes = 3.2 MiB
   Load Address: 80008000
   Entry Point: 80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
   Image Name: initramfs
   Image Type: ARM Linux RAMDisk Image (uncompressed)
   Data Size: 8623286 Bytes = 8.2 MiB
   Load Address: 00000000
   Entry Point: 00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

### DMESG FROM ESCAPE SHELL AFTER LANGUAGE PROMPT - WITH HUB##

~ # dmesg
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.0.8-x3 (root@panda-a1-1gb) (gcc version
4.4.5 (Debian 4.4.5-8) ) #1 SMP Tue Oct 25 20:16:41 UTC 2011
[ 0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7),
cr=10c5387f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing
instruction cache
[ 0.000000] Machine: OMAP3 Beagle Board
[ 0.000000] Beagle expansionboard: none
[ 0.000000] Reserving 18874368 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp 720mhz )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size:
0x10000
[ 0.000000] On node 0 totalpages: 59392
[ 0.000000] free_area_init_node: node 0, pgdat c08d9900,
node_mem_map c09a0000
[ 0.000000] Normal zone: 512 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 58880 pages, LIFO batch:15
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz
[ 0.000000] Reprogramming SDRC clock to 332000000 Hz
[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0ba3000 s7712 r8192
d12768 u32768
[ 0.000000] pcpu-alloc: s7712 r8192 d12768 u32768 alloc=8*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on.
Total pages: 58880
[ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/
ram0 rw fixrtc buddy=none mpurate=auto
[ 0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5,
131072 bytes)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536
bytes)
[ 0.000000] allocated 1048576 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't
want memory cgroups
[ 0.000000] Memory: 232MB = 232MB total
[ 0.000000] Memory: 215972k/215972k available, 46172k 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] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
[ 0.000000] vmalloc : 0xd0800000 - 0xf8000000 ( 632 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xd0000000 ( 256 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .init : 0xc0008000 - 0xc0060000 ( 352 kB)
[ 0.000000] .text : 0xc0060000 - 0xc0866194 (8217 kB)
[ 0.000000] .data : 0xc0868000 - 0xc08db7d0 ( 462 kB)
[ 0.000000] .bss : 0xc08db7f4 - 0xc099f5b0 ( 784 kB)
[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0,
CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:410
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96
interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] omap_hwmod: gpt12_fck: missing clockdomain for
gpt12_fck.
[ 0.000000] OMAP clockevent source: GPTIMER12 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns,
wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000183] Calibrating delay loop... 490.52 BogoMIPS (lpj=1916928)
[ 0.038696] pid_max: default: 32768 minimum: 301
[ 0.038909] Security Framework initialized
[ 0.039001] AppArmor: AppArmor initialized
[ 0.039306] Mount-cache hash table entries: 512
[ 0.040191] Initializing cgroup subsys cpuacct
[ 0.040252] Initializing cgroup subsys memory
[ 0.040313] Initializing cgroup subsys devices
[ 0.040344] Initializing cgroup subsys freezer
[ 0.040466] CPU: Testing write buffer coherency: ok
[ 0.040832] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver,
5 counters available
[ 0.041931] Brought up 1 CPUs
[ 0.041961] SMP: Total of 1 processors activated (490.52 BogoMI
etwl4030sb: Ini8,dyn FIFOs, bulRPC: Registered tcp transport module.
[ 0.198455] RPC: Registered tcp NFSv4.1 backchannel transport
module.
[ 0.198791] Trying to unpack rootfs image as in15hdrc musb-hdrc:
new USB bus registered, assigned bus number 2
[ 4.998046] hub 2-0:1.0: USB hub found
[ 5.002075] hub 2-0:1.0: 1 port detected
[ 5.006805] mousedev: PS/2 mouse device common for all mice
[ 5.013610] input: twl4030_pwrbutton as /devices/platform/omap/
omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input0
[ 5.025451] i2c /dev entries driver
[ 5.029754] lirc_dev: IR Remote Control driver registered, major
250
[ 5.037170] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 5.044342] device-mapper: uevent: version 1.0.3
[ 5.049804] device-mapper: ioctl: 4.20.0-ioctl (2011-02-02)
initialised: dm-devel@redhat.com
[ 5.059509] device-mapper: multipath: version 1.3.0 loaded
[ 5.065368] device-mapper: multipath round-robin: version 1.0.0
loaded
[ 5.072814] cpuidle: using governor ladder
[ 5.077117] cpuidle: using governor menu
[ 5.081359] sdhci: Secure Digital Host Controller Interface driver
[ 5.087860] sdhci: Copyright(c) Pierre Ossman
[ 5.094116] omap_hsmmc: probe of omap_hsmmc.1 failed with error -16
[ 5.101013] Registered led device: beagleboard::usr0
[ 5.101135] Registered led device: beagleboard::usr1
[ 5.102386] Registered led device: beagleboard::pmu_stat
[ 5.103271] usbcore: registered new interface driver snd-usb-6fire
[ 5.111145] OMAP3 Beagle/Devkit8000 SoC init
[ 5.198944] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
[ 5.205871] ALSA device list:
[ 5.209014] #0: omap3beagle
[ 5.213562] TCP cubic registered
[ 5.218017] NET: Registered protocol family 10
[ 5.226257] NET: Registered protocol family 17
[ 5.231414] Registering the dns_resolver key type
[ 5.236511] VFP support v0.3: implementor 41 architecture 3 part 30
variant c rev 1
[ 5.244598] ThumbEE CPU extension supported.
[ 5.249114] Registering SWP/SWPB emulation handler
[ 5.258361] sr_init: No PMIC hook to init smartreflex
[ 5.263946] smartreflex smartreflex.0: omap_sr_probe: SmartReflex
driver initialized
[ 5.272308] smartreflex smartreflex.1: omap_sr_probe: SmartReflex
driver initialized
[ 5.280670] SmartReflex Class3 initialized
[ 5.292022] clock: disabling unused clocks to save power
[ 5.298675] registered taskstats version 1
[ 5.317626] Console: switching to colour frame buffer device 80x30
[ 5.330108] omapdss DPI: Could not find exact pixel clock.
Requested 23500 kHz, got 4000 kHz
[ 5.341644] regulator_init_complete: VDAC: incomplete constraints,
leaving on
[ 5.349304] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 5.356445] Freeing init memory: 352K
[ 5.540191] usb 2-1: new high speed USB device number 2 using musb-
hdrc
[ 5.688781] mmc0: new high speed SDHC card at address 0002
[ 5.732269] mmcblk0: mmc0:0002 00000 3.81 GiB
[ 5.752716] usb 2-1: device v05e3 p0607 is not supported
[ 5.772705] mmcblk0: p1
[ 5.804046] hub 2-1:1.0: USB hub found
[ 5.854919] hub 2-1:1.0: 4 ports detected
[ 6.198333] usb 2-1.2: new high speed USB device number 3 using
musb-hdrc
[ 6.445709] usb 2-1.2: device v13b1 p0018 is not supported
[ 6.587341] usb 2-1.4: new high speed USB device number 4 using
musb-hdrc
[ 6.744537] usb 2-1.4: device v05e3 p0607 is not supported
[ 6.759155] hub 2-1.4:1.0: USB hub found
[ 6.765045] hub 2-1.4:1.0: 4 ports detected
~ #
## DMESG WITH HUB REMOVED BEFORE LOCATION PROMPT AND AFTER FAILED DHCP

I built a NetInstall SD Card per BeagleboardDebian Wiki instructions
using:

./mk_mmc.sh --mmc /dev/sdd --uboot beagle --distro squeeze --serial-
mode

The kernel booted fine and brought me to the NetInstall language
prompt. After selecting layout, the hardware detect was invoked, and
then the install crashed (USR0 heartbeat LED went dark). I enabled
Debug in /mnt, but no info there. Below is boot info as well as dmesg
before HARDWARE DETECT taken in an escape shell. I then reran
netinstall with the usb hub unplugged. The install ran through to DHCP
configure, at which time I aborted the install. The dmesg with no hub
appears as the last listing in this post. As I could only take these
snapshots in an escape shell, before crash, and a snapshot without the
hub, I don't think there is anything useful in these listings. The usb
hub has only a USB200M network adapter installed. I did not modify
mk_mmc.sh before running it. I also flashed X-Loader and u-boot
according to wiki instructions.

Just for reference, is this usb hub externally powered? (i think i
have a USB200M in my parts bin at home..)

Using instructions from lirtex.com, back in 2009, I successfully built
a Debian Linux on a B series board with this same hub and adapter. The
lirtex instructions were more involved but did include a pull from an
rcn depository similar to
http://www.rcn-ee.com/deb/kernel/CC-beagle-v2.6.29-58cf2f1-oer31.1,
but with an older kernel back in 2009.

I would much prefer to use the wiki technique. To verify, I used a
second, new SD card, with the same results. The script needs
unformatted cards to finish successfully. Is there any way to make an
SD card look like a new unformatted card to the mk_mmc.sh script?
I'm running out of new SD cards!

Actually, mk_mmc.sh doesn't care, what's on the sd card... The first
thing it'll do is erase the partition table...

Can you also try with "--beta-kernel" it'll pull in the v3.1 based
kernel i'm merging to stable next week..

8623350 bytes read
## Booting kernel from Legacy Image at 80300000 ...
Image Name: 3.0.8-x3
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3330960 Bytes = 3.2 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 81600000 ...
Image Name: initramfs
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 8623286 Bytes = 8.2 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

### DMESG FROM ESCAPE SHELL AFTER LANGUAGE PROMPT - WITH HUB##

~ # dmesg

[ 5.752716] usb 2-1: device v05e3 p0607 is not supported
[ 5.772705] mmcblk0: p1
[ 5.804046] hub 2-1:1.0: USB hub found
[ 5.854919] hub 2-1:1.0: 4 ports detected
[ 6.198333] usb 2-1.2: new high speed USB device number 3 using
musb-hdrc
[ 6.445709] usb 2-1.2: device v13b1 p0018 is not supported
[ 6.587341] usb 2-1.4: new high speed USB device number 4 using
musb-hdrc
[ 6.744537] usb 2-1.4: device v05e3 p0607 is not supported
[ 6.759155] hub 2-1.4:1.0: USB hub found
[ 6.765045] hub 2-1.4:1.0: 4 ports detected

Nothing obvious, strange..

Regards,

Tried --beta-kernel. Same results. The hub is powered. There doesn't
seem to be any problem with the hub. When I remove the USB200M from
the hub, the install proceeds normally through to DHCP autoconfig
(which, of course, fails). With the USB200M installed, the Beagleboard
hangs at the same time the USB200M activity leds come on. I tried
running the install through DHCP without the hub/adapter, then
plugging the hub back in, and rerunning autoconfigure. No luck. The
dmesg diagnoses the link is not ready although the adapter did get
recognized when plugged back in:
[ 38.309936] asix 2-1.1:1.0: eth0: register 'asix' at usb-musb-
hdrc-1.1, ASIX AX88772 USB 2.0 Ethernet, 00:1d:7e:01:5e:f2
[ 38.310119] usbcore: registered new interface driver
asix[ 298.041259] ADDRCONF(NETDEV_UP): usb0: link is not ready

Hope there are some clues here.

Regards,
Stan