[ELDK] Ramdisk image for 2.6.34 linux

alex daniloff alex_daniloff at mail.ru
Tue Jul 13 14:25:35 CEST 2010


> > > > kernel image is running with - ramdisk_size=32768 root=/dev/ram rw console=ttyS2,115200
> > > > and ramdisk size is also 32768
> > > 
> > > Whoy whoud you want to do that? A ramdisk of that size is the worst
> > > choice of a root file system you can make. Please read the manual!
> 
> You seem to ignore my hints...

No
> 
> > > > Kernel command line: ramdisk_size=32768 root=/dev/ram rw console=ttyS2,115200
> > > -----------------------------------------------------------^^^^^^^^^^^^^
> > > 
> > > Are you sure of this?
> > > 
> > > Is this really supported in your kernel port, and in your device tree?
> 
> and again...

this is correct console port for my board, in default case (ttyS0) i will lose console output after removing early console 

which ramdisk variables i have to add to enviroments and bootargs?

> > > > After that i see no activity. Can you help me with ramdisk image?
> > > 
> > > How could we do that?
> > > 
> > > We don't know your hardware, we don't know your kernel port, we don't
> > > know your kernel configuration, we don't know your device tree, we
> > > don't know your root file system or which device nodes it contains,
> > > we don't know anything about your system.
> > > 
> > > Sorry - based on zero input you cannot expect much useful output.
> > 
> > I'am waiting for -
> >  ### Application running ...
> >  root:~>
> 
> I know what you want to see, but you did not answer any of the
> questions I asked (nor does it seem you bothered to check your config
> either).
> 
> > it hangs in run_init_process("/sbin/init")
> 
> It hangs? Really?  Are you sure of this?

I was wrong, it's running but i see no activity at console
> How did you verify that this is really the case?
> 
> > I have tried with ramdisk image from ELDK 4.2 and custom build RFSB project with the same result.
> > bootargs console=ttyS2,115200 is correct.
> > 
> > will ramdisk image from eldk 4.2 work with linux 2.6.34?
> > will ramdisk image build from RFSB project work with linux 2.6.34?
> 
> Yes to both questions - assuming your system configuration is correct,
> and matches the configuration/assumptions built into these.
it's good

full console log
uImage - linux 2.6.34 with modified rainier(ppc460gt) config
uRamdisk - ELDK 4.2
t800.dtb - modified rainier(ppc460gt) dts
---------------------------------------------------------------
U-Boot 2009.01-5.adv (Jul 13 2010 - 15:49:10)

CPU:   AMCC PowerPC 460GT Rev. A at 666.667 MHz (PLB=166, OPB=83, EBC=83 MHz)
       Security/Kasumi support
       Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
       32 kB I-Cache 32 kB D-Cache
Board: Transcend 800 R3 - AdvantechAMT PPC460GT Board
I2C:   ready
DRAM:   1 GB
Top of RAM usable for U-Boot at: 3f072000
Reserving 455k for U-Boot at: 3f000000
Reserving 8192k for malloc() at: 3e800000
Reserving 172 Bytes for Board Info at: 3e7fff54
Reserving 60 Bytes for Global Data at: 3e7fff18
Stack Pointer at: 3e7ffef8
New Stack Pointer is: 3e7ffef8
New Stack Pointer is: 3e7ffef8
New id: 3e7fff18
New addr is: 3f000000
Now running in RAM - U-boot at: 3f000000
NAND:  64 MiB
Info:  U-Boot relocated to 0x3f000000
Installing interrupts
Install interrupt for vector 30
Install interrupt for vector 31
Install interrupt for vector 10
Install interrupt for vector 11
Install interrupt for vector 16
Install interrupt for vector 17
Done installing interrupts
Net:   Install interrupt for vector 67
Install interrupt for vector 70
Install interrupt for vector 71
Install interrupt for vector 68
Install interrupt for vector 69
ppc_4xx_eth0 [PRIME], ppc_4xx_eth1, ppc_4xx_eth2, ppc_4xx_eth3



### main_loop entered: bootdelay=7

### main_loop: bootcmd="run default_boot"
Press a key to boot:

        0: loader
        1: software

Default: software

seconds left  0
=> printenv
bootcmd=run default_boot
bootdelay=7
baudrate=115200
loads_echo=
ethaddr=02:2E:02:08:FF:00
eth1addr=02:2E:02:08:FF:01
eth2addr=02:2E:02:08:FF:02
eth3addr=02:2E:02:08:FF:03
ipaddr=192.168.12.20
serverip=192.168.12.5
hostname=t800
preboot=echo;echo;echo
netdev=eth0
ethprime=ppc_4xx_eth0
hostname=t800
mtdids=nand0=nand0
mtdparts=mtdparts=nand0:1m(boot),7m(loader),48m(software),8m(data)
partition=nand0,2
mtddevnum=2
mtddevname=software
boot0=chpart nand0,1;fsload 8000000 boot-image;bootm 8000000;reset
bootname0=loader
boot1=chpart nand0,2;fsload 8000000 boot-image;bootm 8000000;chpart nand0,1;fsload 8000000 boot-image;bootm 8000000;reset
bootname1=software
default_boot=chpart nand0,2;fsload 8000000 boot-image;bootm 8000000;chpart nand0,1;fsload 8000000 boot-image;bootm 8000000;reset
default_bootname=software
bootargs=root=/dev/ram rw console=ttyS2,115200
ll=tftp 400000 t800.dts;tftp 408000 uImage;tftp 600000 uRamdisk;bootm 408000 600000 400000
stdin=serial
stdout=serial
stderr=serial
ethact=ppc_4xx_eth0
ver=U-Boot 2009.01-5.adv (Jul 13 2010 - 15:49:10)

Environment size: 1065/16379 bytes
Environment pointer: 0x3f004000
Environment address: 0x3f004005
Environment valid: 1
=> run ll
Trying ppc_4xx_eth0
Previous transfer (eth0): sent 0, received 0 handled 0 packets
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
Install interrupt for vector 80
Using ppc_4xx_eth0 device
TFTP from server 192.168.12.5; our IP address is 192.168.12.20
Filename 't800.dts'.
Load address: 0x400000
Loading: ####
done
Bytes transferred = 20000 (4e20 hex)
Trying ppc_4xx_eth0
Previous transfer (eth0): sent 42, received 41 handled 41 packets
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 192.168.12.5; our IP address is 192.168.12.20
Filename 'uImage'.
Load address: 0x408000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################################
done
Bytes transferred = 1493492 (16c9f4 hex)
Trying ppc_4xx_eth0
Previous transfer (eth0): sent 2919, received 2918 handled 2918 packets
ENET Speed is 1000 Mbps - FULL duplex connection (EMAC0)
Using ppc_4xx_eth0 device
TFTP from server 192.168.12.5; our IP address is 192.168.12.20
Filename 'uRamdisk'.
Load address: 0x600000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #############
done
Bytes transferred = 1728001 (1a5e01 hex)
WARNING: adjusting available memory to 30000000
## Current stack ends at 0x3e7ffba0
*  kernel: cmdline image address = 0x00408000
## Booting kernel from Legacy Image at 00408000 ...
   Image Name:   Linux-2.6.34
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    1493428 Bytes =  1.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   kernel data at 0x00408040, len = 0x0016c9b4 (1493428)
*  ramdisk: cmdline image address = 0x00600000
## Loading init Ramdisk from Legacy Image at 00600000 ...
   Image Name:   Simple Embedded Linux Framework
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    1727937 Bytes =  1.6 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   ramdisk start = 0x00600040, ramdisk end = 0x007a5e01
*  fdt: cmdline image address = 0x00400000
## Checking for 'FDT'/'FDT Image' at 00400000
*  fdt: raw FDT blob
## Flattened Device Tree blob at 00400000
   Booting using the fdt blob at 0x400000
   of_flat_tree at 0x00400000 size 0x00004e20
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x00000000, end = 0x002fc604
## initrd_high = 0xffffffff, copy_to_ram = 1
   Loading Ramdisk to 2fe5a000, end 2ffffdc1 ... OK
   ramdisk load start = 0x2fe5a000, ramdisk load end = 0x2ffffdc1
Updating property 'timebase-frequency' =  27 bc 86 b3
Updating property 'clock-frequency' =  27 bc 86 b3
Updating property '/plb/clock-frequency' =  09 ef 21 ac
Updating property '/plb/opb/clock-frequency' =  04 f7 90 d6
Updating property '/plb/opb/ebc/clock-frequency' =  04 f7 90 d6
Updating property 'clock-frequency' =  00 54 c5 63
Updating property '/plb/opb/ethernet at ef600e00/mac-address' =  02 2e 02 08 ff 00
Updating property '/plb/opb/ethernet at ef600e00/local-mac-address' =  02 2e 02 08 ff 00
Updating property '/plb/opb/ethernet at ef600f00/mac-address' =  02 2e 02 08 ff 01
Updating property '/plb/opb/ethernet at ef600f00/local-mac-address' =  02 2e 02 08 ff 01
Updating property '/plb/opb/ethernet at ef601100/mac-address' =  02 2e 02 08 ff 02
Updating property '/plb/opb/ethernet at ef601100/local-mac-address' =  02 2e 02 08 ff 02
Updating property '/plb/opb/ethernet at ef601200/mac-address' =  02 2e 02 08 ff 03
Updating property '/plb/opb/ethernet at ef601200/local-mac-address' =  02 2e 02 08 ff 03
## Transferring control to Linux (at address 00000000) ...
   Booting using OF flat tree...
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
Using PowerPC 44x Platform machine description
Linux version 2.6.34 (dan at linux-8us8) (gcc version 4.2.2) #15 Tue Jul 13 14:56:20 MSD 2010
Found initrd at 0xefe5a000:0xeffffdc1
Found legacy serial port 0 for /plb/opb/serial at ef600300
  mem=4ef600300, taddr=4ef600300, irq=0, clk=5555555, speed=0
Found legacy serial port 1 for /plb/opb/serial at ef600400
  mem=4ef600400, taddr=4ef600400, irq=0, clk=5555555, speed=0
Found legacy serial port 2 for /plb/opb/serial at ef600500
  mem=4ef600500, taddr=4ef600500, irq=0, clk=5555555, speed=115200
Found legacy serial port 3 for /plb/opb/serial at ef600600
  mem=4ef600600, taddr=4ef600600, irq=0, clk=5555555, speed=0
bootconsole [udbg0] enabled
setup_arch: bootmem
arch: exit
Top of RAM: 0x30000000, Total RAM: 0x30000000
Memory hole size: 0MB
Zone PFN ranges:
  DMA      0x00000000 -> 0x00030000
  Normal   empty
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00030000
On node 0 totalpages: 196608
free_area_init_node: node 0, pgdat c02f3df0, node_mem_map c0402000
  DMA zone: 1536 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 195072 pages, LIFO batch:31
MMU: Allocated 1088 bytes of context maps for 255 contexts
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 195072
Kernel command line: root=/dev/ram rw console=ttyS2,115200
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 774584k/786432k available (2928k kernel code, 11848k reserved, 132k data, 106k bss, 136k init)
Kernel virtual memory layout:
  * 0xfffdf000..0xfffff000  : fixmap
  * 0xfde00000..0xfe000000  : consistent mem
  * 0xfde00000..0xfde00000  : early ioremap
  * 0xf1000000..0xfde00000  : vmalloc & ioremap
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:512 nr_irqs:512
UIC0 (32 IRQ sources) at DCR 0xc0
UIC1 (32 IRQ sources) at DCR 0xd0
  alloc irq_desc for 30 on node 0
  alloc kstat_irqs on node 0
irq: irq 30 on host /interrupt-controller0 mapped to virtual irq 30
UIC2 (32 IRQ sources) at DCR 0xe0
  alloc irq_desc for 16 on node 0
  alloc kstat_irqs on node 0
irq: irq 10 on host /interrupt-controller0 mapped to virtual irq 16
UIC3 (32 IRQ sources) at DCR 0xf0
  alloc irq_desc for 17 on node 0
  alloc kstat_irqs on node 0
irq: irq 16 on host /interrupt-controller0 mapped to virtual irq 17
time_init: decrementer frequency = 666.666675 MHz
time_init: processor frequency   = 666.666675 MHz
clocksource: timebase mult[600000] shift[22] registered
clockevent: decrementer mult[aaaaaace] shift[32] cpu[0]
Mount-cache hash table entries: 512
NET: Registered protocol family 16

  alloc irq_desc for 18 on node 0
  alloc kstat_irqs on node 0
irq: irq 11 on host /interrupt-controller1 mapped to virtual irq 18
256k L2-cache enabled
PCI: Probing PCI hardware
bio: create slab <bio-0> at 0
vgaarb: loaded
Switching to clocksource timebase
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
PCI: CLS 0 bytes, default 32
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 1687k freed
  alloc irq_desc for 19 on node 0
  alloc kstat_irqs on node 0
irq: irq 1 on host /interrupt-controller1 mapped to virtual irq 19
  alloc irq_desc for 20 on node 0
  alloc kstat_irqs on node 0
irq: irq 1 on host /interrupt-controller0 mapped to virtual irq 20
  alloc irq_desc for 29 on node 0
  alloc kstat_irqs on node 0
irq: irq 29 on host /interrupt-controller1 mapped to virtual irq 29
  alloc irq_desc for 21 on node 0
  alloc kstat_irqs on node 0
irq: irq 30 on host /interrupt-controller1 mapped to virtual irq 21
JFFS2 version 2.2. (NAND) б&#9560; 2001-2006 Red Hat, Inc.
msgmni has been set to 1516
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
serial8250.0: ttyS0 at MMIO 0x4ef600300 (irq = 19) is a 16550A
serial8250.0: ttyS1 at MMIO 0x4ef600400 (irq = 20) is a 16550A
serial8250.0: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550A
console [ttyS2] enabled, bootconsole disabled
console [ttyS2] enabled, bootconsole disabled
serial8250.0: ttyS3 at MMIO 0x4ef600600 (irq = 21) is a 16550A
4ef600300.serial: ttyS0 at MMIO 0x4ef600300 (irq = 19) is a 16550
4ef600400.serial: ttyS1 at MMIO 0x4ef600400 (irq = 20) is a 16550
4ef600500.serial: ttyS2 at MMIO 0x4ef600500 (irq = 29) is a 16550
4ef600600.serial: ttyS3 at MMIO 0x4ef600600 (irq = 21) is a 16550
brd: module loaded
TCP cubic registered
NET: Registered protocol family 17
RAMDISK: gzip image found at block 0
VFS: Mounted root (ext2 filesystem) on device 1:0.
Freeing unused kernel memory: 136k init
------------------------------------------------------------------

Thanks, Alex


More information about the eldk mailing list