next stepp.
i can't set env-variables in uboot / after power-down the variables have the default-value!
If i use in uboot <dynpart> and then <bootd> the kernel will be load out of nand-flash (yeah :-) ).
Now, i write the root.bin which i create following:
extract <root_default.tgz> (from cd-rom).
create with mkfs.jffs2 (mtd-tools) the root.bin file (i use this way at various linux-systems - and it works fine).
here my log:
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
QQ2440 # setenv bootargs_base 'rootfstype=jffs2 root=/dev/mtdblock4 init=/linuxrc console=ttySAC0,115200 loglevel=8'
QQ2440 # saveenv
Saving Environment to NAND...
Erasing Nand...QQ2440 # dynpart
mtdparts mtdparts=qq2440-nand:0x00030000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d2c000(rootfs)
QQ2440 # bootd
NAND read: device 0 offset 0x34000, size 0x200000
Reading data from 0x233e00 -- 100% complete.
2097152 bytes read: OK
## Booting image at 32000000 ...
Image Name: Openmoko/2.6.24+svnr65/qq2440
Created: 2008-07-05 19:43:13 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1781736 Bytes = 1.7 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux........................................................................................................................... done, booting the kernel.
Linux version 2.6.24 (
Thomas@localhost.localdomain) (gcc version 4.1.2) #3 PREEMPT Sat Jul 5 19:55:11 CEST 2008
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
Machine: Friendly-ARM QQ2440 Development Board
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 16384
DMA zone: 128 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 16256 pages, LIFO batch:3
Normal zone: 0 pages used for memmap
Movable zone: 0 pages used for memmap
CPU S3C2440A (id 0x32440001)
S3C244X: core 304.000 MHz, memory 101.333 MHz, peripheral 50.666 MHz
S3C24XX Clocks, (c) 2004 Simtec Electronics
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
CPU0: D cache: 16384 bytes, associativity 64, 32 byte lines, 8 sets
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: rootfstype=jffs2 root=/dev/mtdblock4 init=/linuxrc console=ttySAC0,115200 loglevel=8 mtdparts=qq2440-nand:0x00030000(u-boot),0x00004000(u-boot_env),0x00200000(kernel),0x000a0000(splash),0x03d2c000(rootfs)
irq: clearing pending ext status 00000200
irq: clearing subpending status 00000003
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
timer tcon=00500000, tcnt a4ed, tcfg 00000200,00000000, usec 00001e51
Console: colour dummy device 80x30
console [ttySAC0] enabled
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: 60860KB available (3296K code, 342K data, 372K init)
Calibrating delay loop... 151.55 BogoMIPS (lpj=378880)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C2440: Clock Support, DVS off
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4800000, irq 33
DMA channel 1 at c4800040, irq 34
DMA channel 2 at c4800080, irq 35
DMA channel 3 at c48000c0, irq 36
Linux Plug and Play Support v0.97 (c) Adam Belay
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pnp: the driver 'system' has been registered
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
NetWinder Floating Point Emulator V0.97 (double precision)
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler deadline registered (default)
Console: switching to colour frame buffer device 133x43
fb0: s3c2410fb frame buffer device
GPIO L3 bus interface for S3C2440, installed
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c2440-nand s3c2440-nand: Tacls=1, 9ns Twrph0=4 39ns, Twrph1=1 9ns
NAND device: Manufacturer ID: 0xec, Chip ID: 0x76 (Samsung NAND 64MiB 3,3V 8-bit)
s3c2410_nand_update_chip: chip c3df92b8: 9
Bad block table found at page 131040, version 0x01
Bad block table found at page 131008, version 0x01
nand_read_bbt: Bad block at 0x00980000
5 cmdlinepart partitions found on MTD device qq2440-nand
Creating 5 MTD partitions on "qq2440-nand":
0x00000000-0x00030000 : "u-boot"
0x00030000-0x00034000 : "u-boot_env"
0x00034000-0x00234000 : "kernel"
0x00234000-0x002d4000 : "splash"
0x002d4000-0x04000000 : "rootfs"
usbmon: debugfs is not available
usbcore: registered new interface driver libusual
s3c2410_udc: debugfs dir creation failed -19
s3c2440-usbgadget s3c2440-usbgadget: S3C2440: increasing FIFO to 128 bytes
ether gadget: using random self ethernet address
ether gadget: using random host ethernet address
usb0: Ethernet Gadget, version: May Day 2005
usb0: using s3c2410_udc, OUT ep2-bulk IN ep1-bulk STATUS ep3-bulk
usb0: MAC 12:d3:d2:fd:be:f5
usb0: HOST MAC ca:1a:ea:8f:a4:c8
usb0: RNDIS ready
mice: PS/2 mouse device common for all mice
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /devices/virtual/input/input0
i2c /dev entries driver
s3c2440-i2c s3c2440-i2c: slave address 0x10
s3c2440-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c2440-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
pcf50633_attach_adapter: entering, calling i2c_probe
mmc_set_power(power_mode=0, vdd=0
s3c2440-sdi s3c2410-sdi: powered down.
s3c2440-sdi s3c2410-sdi: initialisation done.
pnp: the driver 'sdio_wlan' has been registered
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
mmc_set_power(power_mode=1, vdd=20
s3c2440-sdi s3c2410-sdi: running at 0kHz (requested: 0kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 198kHz (requested: 197kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 16888kHz (requested: 25000kHz).
mmc_set_power(power_mode=2, vdd=20
s3c2440-sdi s3c2410-sdi: running at 16888kHz (requested: 25000kHz).
mmc0: new SD card at address 0001
mmcblk0: mmc0:0001 256MB 247424KiB
mmcblk0: unknown partition table
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 372K
Warning: unable to open an initial console.