2.6.30-rc7 noMMU

download romfs.img

Separate kernel and rootfs

SDRAM :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x9ffc0000
FLASH: 32 MB
MAC:00:E0:0C:00:00:FD
eth0: Xilinx XPS LocalLink Tri-Mode Ether MAC #0 at 0x81C00000.
Unsupported mode
U-Boot-mONStR> run ml505
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'image.ub'.
Load address: 0x90800000
Loading: 100BASE-T/FD
#################################################################
         #################################################################
         ###################################################
done
Bytes transferred = 2646084 (286044 hex)
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'system.dtb'.
Load address: 0x90780000
Loading: 100BASE-T/FD
#
done
Bytes transferred = 9121 (23a1 hex)
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'romfs.ub'.
Load address: 0x90c80000
Loading: 100BASE-T/FD
#################################################################
         #################################################################
         ####################
done
Bytes transferred = 2188352 (216440 hex)
## Booting kernel from Legacy Image at 90800000 ...
   Image Name:   kernel bez FS
   Image Type:   MicroBlaze Linux Kernel Image (uncompressed)
   Data Size:    2646020 Bytes =  2.5 MB
   Load Address: 90000000
   Entry Point:  90000000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 90c80000 ...
   Image Name:   fs v no network
   Image Type:   MicroBlaze Linux RAMDisk Image (uncompressed)
   Data Size:    2188288 Bytes =  2.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
## Flattened Device Tree blob at 90780000
   Booting using the fdt blob at 0x90780000
## Loading init Ramdisk from Legacy Image at 90c80000 ...
   Image Name:   fs v no network
   Image Type:   MicroBlaze Linux RAMDisk Image (uncompressed)
   Data Size:    2188288 Bytes =  2.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Transferring control to Linux (at address 90000000), 0x00000000 ramdisk 0x90c80040, FDT 0x90780000...
early_printk_console is enabled at 0x84000000
Ramdisk addr 0x90c80040, FDT 0x90780000
Found romfs @ 0x90c80040 (0x00217000)
#### klimit 902d8000 ####
Moved 0x00217000 bytes from 0x90c80040 to 0x902d7b38
New klimit: 0x904ef000
Found FDT at 0x90780000
Linux version 2.6.30-rc7-00641-g98c67b3-dirty (monstr@monstr.eu) (gcc version 4.1.2) #2 Fri May 29 11:16:15 CEST 2009
setup_cpuinfo: initialising
setup_cpuinfo: Using full CPU PVR support
setup_memory: Main mem: 0x90000000-0xa0000000, size 0x10000000
setup_memory: kernel addr=0x90000000-0x904ef000 size=0x004ef000
setup_memory: max_mapnr: 0x10000
setup_memory: min_low_pfn: 0x90000
setup_memory: max_low_pfn: 0xa0000
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat 9026a044, node_mem_map 904ef000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0,115200 highres=on root=/dev/mtdblock0
NR_IRQS:32
xlnx,xps-intc-1.00.a #0 at 0x81800000, num_irq=9, edge=0x100
PID hash table entries: 1024 (order: 10, 4096 bytes)
xlnx,xps-timer-1.00.a #0 at 0x83c00000, irq=3
Heartbeat GPIO at 0x81400000
microblaze_timer_set_mode: shutdown
microblaze_timer_set_mode: periodic
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254844k/262144k available
ODEBUG: 3 of 3 active objects replaced
ODEBUG: selftest passed
Calibrating delay loop... 61.23 BogoMIPS (lpj=306176)
Mount-cache hash table entries: 512
net_namespace: 544 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81400000: registered
microblaze_timer_set_mode: oneshot
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 497
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 8) is a uartlite
console [ttyUL0] enabled
brd: module loaded
nbd: registered device at major 43
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
XLlTemac: Dma base address: phy: 0x84600180, virt: 0x84600180
XLlTemac: buffer descriptor size: 32768 (0x8000)
XLlTemac: Allocating DMA descriptors with kmalloc<6>XLlTemac: (buffer_descriptor_init) phy: 0x9f928000, virt: 0x9f928000, size: 0x8000
XTemac: PHY detected at address 7.
eth0 (): not using net_device_ops yet
eth0: Dropping NETIF_F_SG since no checksum feature.
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0x81C00000, irq=5
uclinux[mtd]: RAM probe address=0x902d7b38 size=0x217000
Creating 1 MTD partitions on "RAM":
0x000000000000-0x000000217000 : "ROMfs"
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFS: Mounted root (romfs filesystem) readonly on device 31:0.
Freeing unused kernel memory: 96k freed
Mounting proc: 
Mounting var: 
Populating /var: 
Running local start scripts.
Mounting sysfs:
Setting hostname: 
Setting up interface lo: 
Setting up interface eth0: 
Starting httpd: 
Mounting nfs server

uclinux login: root
Password: 
Jan  1 00:00:11 login[45]: root login on 'ttyUL0'


BusyBox v1.15.0.svn (2009-05-29 12:11:33 CEST) built-in shell (msh)
Enter 'help' for a list of built-in commands.

# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
ping: sendto: Network is unreachable
# ifconfig eth0 192.168.0.2 up
eth0: XLlTemac: Options: 0x3fa
eth0: XLlTemac: allocating interrupt 1 for dma mode tx.
eth0: XLlTemac: allocating interrupt 2 for dma mode rx.
eth0: XLlTemac: speed set to 100Mb/s
eth0: XLlTemac: Send Threshold = 24, Receive Threshold = 4
eth0: XLlTemac: Send Wait bound = 254, Receive Wait bound = 254
# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=64 time=11.043 ms
64 bytes from 192.168.0.1: seq=1 ttl=64 time=3.869 ms
64 bytes from 192.168.0.1: seq=2 ttl=64 time=3.742 ms
64 bytes from 192.168.0.1: seq=3 ttl=64 time=3.738 ms

--- 192.168.0.1 ping statistics ---
4 packets transmitted, 4 packets received, 0% packet loss
round-trip min/avg/max = 3.738/5.598/11.043 ms
# 

Rootfs at _bss_start

echo $CROSS_COMPILE
BSS=`${CROSS_COMPILE}objdump --headers vmlinux | grep "\.bss"`;
ADDR=`set -- ${BSS} ; echo 0x${5}`;
echo ${ADDR}

[ ! -f romfs.img ] && exit -1
${CROSS_COMPILE}objcopy --add-section=.romfs=romfs.img \
                --adjust-section-vma=.romfs=${ADDR} --no-adjust-warnings \
                --set-section-flags=.romfs=alloc,load,data   \
                vmlinux linux.elf
${CROSS_COMPILE}objcopy -O binary linux.elf linux.bin
mkimage  -A microblaze -O linux -T kernel -C none -a $addr -e $addr -n "kernel s rootfs __bss_start" -d linux.bin /tftpboot/image2.ub
 SDRAM :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x9ffc0000
FLASH: 32 MB
MAC:00:E0:0C:00:00:FD
eth0: Xilinx XPS LocalLink Tri-Mode Ether MAC #0 at 0x81C00000.
Unsupported mode
U-Boot-mONStR> run b
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'image2.ub'.
Load address: 0x90800000
Loading: Unsupported mode
100BASE-T/FD
T #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####
done
Bytes transferred = 4838464 (49d440 hex)
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'system.dtb'.
Load address: 0x90780000
Loading: 100BASE-T/FD
#
done
Bytes transferred = 9121 (23a1 hex)
## Booting kernel from Legacy Image at 90800000 ...
   Image Name:   kernel s rootfs __bss_start
   Image Type:   MicroBlaze Linux Kernel Image (uncompressed)
   Data Size:    4838400 Bytes =  4.6 MB
   Load Address: 90000000
   Entry Point:  90000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
## Flattened Device Tree blob at 90780000
   Booting using the fdt blob at 0x90780000
## Transferring control to Linux (at address 90000000), 0x00000000 ramdisk 0x00000000, FDT 0x90780000...
early_printk_console is enabled at 0x84000000
Ramdisk addr 0x00000000, FDT 0x90780000
Found romfs @ 0x90287000 (0x00217000)
#### klimit 902d8000 ####
Moved 0x00217000 bytes from 0x90287000 to 0x902d7b38
New klimit: 0x904ef000
Found FDT at 0x90780000
Linux version 2.6.30-rc7-00641-g98c67b3-dirty (monstr@monstr.eu) (gcc version 4.1.2) #2 Fri May 29 11:16:15 CEST 2009
setup_cpuinfo: initialising
setup_cpuinfo: Using full CPU PVR support
setup_memory: Main mem: 0x90000000-0xa0000000, size 0x10000000
setup_memory: kernel addr=0x90000000-0x904ef000 size=0x004ef000
setup_memory: max_mapnr: 0x10000
setup_memory: min_low_pfn: 0x90000
setup_memory: max_low_pfn: 0xa0000
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat 9026a044, node_mem_map 904ef000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0,115200 highres=on root=/dev/mtdblock0
NR_IRQS:32
xlnx,xps-intc-1.00.a #0 at 0x81800000, num_irq=9, edge=0x100
PID hash table entries: 1024 (order: 10, 4096 bytes)
xlnx,xps-timer-1.00.a #0 at 0x83c00000, irq=3
Heartbeat GPIO at 0x81400000
microblaze_timer_set_mode: shutdown
microblaze_timer_set_mode: periodic
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254844k/262144k available
ODEBUG: 3 of 3 active objects replaced
ODEBUG: selftest passed
Calibrating delay loop... 61.23 BogoMIPS (lpj=306176)
Mount-cache hash table entries: 512
net_namespace: 544 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81400000: registered
microblaze_timer_set_mode: oneshot
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 497
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 8) is a uartlite
console [ttyUL0] enabled
brd: module loaded
nbd: registered device at major 43
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
XLlTemac: Dma base address: phy: 0x84600180, virt: 0x84600180
XLlTemac: buffer descriptor size: 32768 (0x8000)
XLlTemac: Allocating DMA descriptors with kmalloc<6>XLlTemac: (buffer_descriptor_init) phy: 0x9f928000, virt: 0x9f928000, size: 0x8000
XTemac: PHY detected at address 7.
eth0 (): not using net_device_ops yet
eth0: Dropping NETIF_F_SG since no checksum feature.
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0x81C00000, irq=5
uclinux[mtd]: RAM probe address=0x902d7b38 size=0x217000
Creating 1 MTD partitions on "RAM":
0x000000000000-0x000000217000 : "ROMfs"
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFS: Mounted root (romfs filesystem) readonly on device 31:0.
Freeing unused kernel memory: 96k freed
Mounting proc: 
Mounting var: 
Populating /var: 
Running local start scripts.
Mounting sysfs:
Setting hostname: 
Setting up interface lo: 
Setting up interface eth0: 
Starting httpd: 
Mounting nfs server

uclinux login:

Rootfs at _init_end

${CROSS_COMPILE}objcopy -O binary vmlinux linux2.bin
cat romfs.img >> linux2.bin

mkimage  -A microblaze -O linux -T kernel -C none -a $addr -e $addr -n "kernel s rootfs __init_end" -d linux2.bin /tftpboot/image3.ub
SDRAM :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x9ffc0000
FLASH: 32 MB
MAC:00:E0:0C:00:00:FD
eth0: Xilinx XPS LocalLink Tri-Mode Ether MAC #0 at 0x81C00000.
Unsupported mode
U-Boot-mONStR> run c
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'image3.ub'.
Load address: 0x90800000
Loading: 100BASE-T/FD
#################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #####
done
Bytes transferred = 4834372 (49c444 hex)
TFTP from server 192.168.0.102; our IP address is 192.168.0.3
Filename 'system.dtb'.
Load address: 0x90780000
Loading: 100BASE-T/FD
#
done
Bytes transferred = 9121 (23a1 hex)
## Booting kernel from Legacy Image at 90800000 ...
   Image Name:   kernel s rootfs __init_end
   Image Type:   MicroBlaze Linux Kernel Image (uncompressed)
   Data Size:    4834308 Bytes =  4.6 MB
   Load Address: 90000000
   Entry Point:  90000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
## Flattened Device Tree blob at 90780000
   Booting using the fdt blob at 0x90780000
## Transferring control to Linux (at address 90000000), 0x00000000 ramdisk 0x00000000, FDT 0x90780000...
early_printk_console is enabled at 0x84000000
Ramdisk addr 0x00000000, FDT 0x90780000
Found romfs @ 0x90286004 (0x00217000)
#### klimit 902d8000 ####
Moved 0x00217000 bytes from 0x90286004 to 0x902d7b38
New klimit: 0x904ef000
Found FDT at 0x90780000
Linux version 2.6.30-rc7-00641-g98c67b3-dirty (monstr@monstr.eu) (gcc version 4.1.2) #2 Fri May 29 11:16:15 CEST 2009
setup_cpuinfo: initialising
setup_cpuinfo: Using full CPU PVR support
setup_memory: Main mem: 0x90000000-0xa0000000, size 0x10000000
setup_memory: kernel addr=0x90000000-0x904ef000 size=0x004ef000
setup_memory: max_mapnr: 0x10000
setup_memory: min_low_pfn: 0x90000
setup_memory: max_low_pfn: 0xa0000
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat 9026a044, node_mem_map 904ef000
  Normal zone: 512 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 65024 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: console=ttyUL0,115200 highres=on root=/dev/mtdblock0
NR_IRQS:32
xlnx,xps-intc-1.00.a #0 at 0x81800000, num_irq=9, edge=0x100
PID hash table entries: 1024 (order: 10, 4096 bytes)
xlnx,xps-timer-1.00.a #0 at 0x83c00000, irq=3
Heartbeat GPIO at 0x81400000
microblaze_timer_set_mode: shutdown
microblaze_timer_set_mode: periodic
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 254844k/262144k available
ODEBUG: 3 of 3 active objects replaced
ODEBUG: selftest passed
Calibrating delay loop... 61.23 BogoMIPS (lpj=306176)
Mount-cache hash table entries: 512
net_namespace: 544 bytes
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
XGpio: /plb@0/gpio@81400000: registered
microblaze_timer_set_mode: oneshot
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
ROMFS MTD (C) 2007 Red Hat, Inc.
msgmni has been set to 497
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
84000000.serial: ttyUL0 at MMIO 0x84000003 (irq = 8) is a uartlite
console [ttyUL0] enabled
brd: module loaded
nbd: registered device at major 43
Device Tree Probing 'ethernet'
xilinx_lltemac 81c00000.ethernet: MAC address is now  2: 0: 0: 0: 0: 0
xilinx_lltemac 81c00000.ethernet: XLlTemac: using DMA mode.
XLlTemac: Dma base address: phy: 0x84600180, virt: 0x84600180
XLlTemac: buffer descriptor size: 32768 (0x8000)
XLlTemac: Allocating DMA descriptors with kmalloc<6>XLlTemac: (buffer_descriptor_init) phy: 0x9f928000, virt: 0x9f928000, size: 0x8000
XTemac: PHY detected at address 7.
eth0 (): not using net_device_ops yet
eth0: Dropping NETIF_F_SG since no checksum feature.
xilinx_lltemac 81c00000.ethernet: eth0: Xilinx TEMAC at 0x81C00000 mapped to 0x81C00000, irq=5
uclinux[mtd]: RAM probe address=0x902d7b38 size=0x217000
Creating 1 MTD partitions on "RAM":
0x000000000000-0x000000217000 : "ROMfs"
TCP cubic registered
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
VFS: Mounted root (romfs filesystem) readonly on device 31:0.
Freeing unused kernel memory: 96k freed
Mounting proc: 
Mounting var: 
Populating /var: 
Running local start scripts.
Mounting sysfs:
Setting hostname: 
Setting up interface lo: 
Setting up interface eth0: 
Starting httpd: 
Mounting nfs server

uclinux login: 

 
fdt/fdt/logs/2.6.30-rc7-nommu-external-rootfs.txt · Last modified: 2009/07/01 16:10 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki