Tuesday, 6th of January 2009
Tuesday, 6th of January 2009
"filesystem" — 1 post
Well, today decided I should upgrade u-boot and the filesystem -- wanted to make sure I could do it before I got too far with this project. Also wanted to make I had all the latest and greatest changes.

I tried to follow the instructions here, specifically the ones titles "Flashing over SSH/Ethernet." Turns out they kinda of worked. Everything went through without an error. The only problem was on the reboot, I got the following error:

U-Boot 1.2.0 (Aug 17 2007 - 14:29:48) - 400 MHZ -1508
*** Welcome to Gumstix ***

DRAM: 64 MB
Flash: 16 MB
Using default environment

SMC91C1111-0
Net: SMC91C1111-0
Hit any key to stop autoboot: 2 \0x08\0x08\0x08 1 \0x08\0x08\0x08 0
Instruction Cache is ON
Copying kernel to 0xa2000000 from 0x00f00000 (length 0x00100000)...done
## Booting image at a2000000 ...
Bad Magic Number
GUM>


Ouch. After a deep breath, I realized that it booted the new u-boot, so I now needed to follow the new instructions for verdex boards and gumstix after 1326 (where do you find out your damn version??). Anyways, I then did the following from ckermit:

GUM> loadb a2000000
kermit>send rootfs.arm_nofpu.jffs2
kermit>connect
## Ready for binary (kermit) download to 0xA2000000 at 115200 bps...
GUM>pro on 1:0-1 && jera all && cp.b a2000000 40000 ${filesize} -- NOTE: don't fill in the filesize, but leave it as "${filesize}" -- I tried and it doesn't work Wink
Protect Flash Sectors 0-1 in Bank # 1
.. done
Erase Flash Bank # 1 - Warning: 2 protected sectors will not be erased!
.............................................................................................................................. done
Copy to Flash... done
GUM> loadb a2000000
## Ready for binary (kermit) download to 0xA2000000 at 115200 bps...

kermit>send uImage
kermit>connect

GUM> katinstall 100000
Copying kernel from 0xa2000000 to 0x00f00000 (length 0x00100000)...Erasing...
........ done
Erased 8 sectors
Writing...done
GUM> katload 100000
Copying kernel to 0xa2000000 from 0x00f00000 (length 0x00100000)...done
GUM> bootm
## Booting image at a2000000 ...
Image Name: uImage
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 925092 Bytes = 903.4 kB
Load Address: a0008000
Entry Point: a0008000
OK

Starting kernel ...

U-Boot 1.2.0 (Aug 17 2007 - 14:29:48) - 400 MHz - 1508

*** Welcome to Gumstix ***

DRAM: 64 MB
Flash: 16 MB
Using default environment

SMC91C1111-0
Net: SMC91C1111-0
Hit any key to stop autoboot: 0
Instruction Cache is ON
Copying kernel to 0xa2000000 from 0x00f00000 (length 0x00100000)...done
## Booting image at a2000000 ...
Image Name: uImage
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 925092 Bytes = 903.4 kB
Load Address: a0008000
Entry Point: a0008000
OK

Starting kernel ...

Linux version 2.6.21gum (root@ubuntu) (gcc version 4.1.1) #1 PREEMPT Fri Aug 17 14:22:15 PDT 2007
CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE), cr=0000397f
Machine: The Gumstix Platform
Memory policy: ECC disabled, Data cache writeback
Memory clock: 99.53MHz (*27)
Run Mode clock: 398.13MHz (*4)
Turbo Mode clock: 398.13MHz (*1.0, inactive)
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists. Total pages: 16256
Kernel command line: console=ttyS0,115200n8 root=1f01 rootfstype=jffs2 reboot=cold,hard
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 62896KB available (1684K code, 161K data, 132K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Time: pxa_timer clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
JFFS2 version 2.2. (NAND) (SUMMARY) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler cfq registered (default)
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 14) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 13) is a STUART
pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq = 0) is a HWUART
Probing Gumstix Flash ROM at physical address 0x00000000 (16-bit bankwidth)
Gumstix Flash ROM: Found 1 x16 devices at 0x0 in 16-bit bank
Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Using static partitions on Gumstix Flash ROM
Creating 3 MTD partitions on "Gumstix Flash ROM":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00f00000 : "RootFS"
0x00f00000-0x01000000 : "Kernel"
TCP cubic registered
XScale DSP coprocessor detected.
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 132K
NET: Registered protocol family 1
smc91x: not found (-19).
CPLD responded with: c2
Initializing random number generator... done.
Starting Bluetooth subsystem:pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
cfio: module license 'unspecified' taints kernel.
pccard: PCMCIA card inserted into slot 1
pcmcia: registering new device pcmcia1.0
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
hcid.
Starting network...
hda: SanDisk SDCFB-192, CFA DISK drive
udhcpc (v0.9.9-pre) started
Dec 31 16:00:10 udhcpc[172]: udhcpc (v0.9.9-pre) started
m
Dec 31 16:00:10 udhcpc[172]: [truncated] m
Before register driver
ide0 at 0xc48a0000-0xc48a0007,0xc48a000e on irq 50
ide-cs: hda: Vpp = 0.0
Entering cf_attach()
pcmcia: request for exclusive IRQ could not be fulfilled.
pcmcia: the driver needs updating to supported shared IRQ lines.
BasePort1=0xc4880000, AssignedIRQ=49
After calling wlan_add_card function
After register driver
SCSI subsystem initialized
hda: max request size: 128KiB
hda: 375808 sectors (192 MB) w/1KiB Cache, CHS=734/16/32
hda: hda1
Starting Rendezvous:
Starting dropbear sshd: NET: Registered protocol family 10
Mobile IPv6
OK
Starting httpd...
Starting system message bus: done



Welcome to the Gumstix Linux Distribution!

gumstix login:

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

Cool!
A couple of notes: I had to delete several suprious "-e"s in my modprobe.conf file and also in /etc/network/interfaces. Supposedly these are due to ubuntu symlinking /bin/sh to dash instead of bash. i deleted the symlink and remade it directly to bash instead and rebuilt -- all is good.

[root@gumstix init.d]# uname -a
Linux gumstix 2.6.21gum #1 PREEMPT Fri Aug 17 14:22:15 PDT 2007 armv5tel unknown

[root@gumstix init.d]# cat /etc/gumstix-release
DISTRIB_ID='gumstix'
DISTRIB_DESCRIPTION=''
DISTRIB_RELEASE='1511'
DISTRIB_CODENAME=''
BUILD_DATE='Mon Aug 20 15:40:21 PDT 2007'
BUILD_HOSTNAME='ubuntu'


Also, because the kernel is now loaded in a separate part of flash (I think) and the bootloader doesn't have to search for it, boot up times are much, much faster.