[U-Boot] where is rootfs??

Dawid Partyka - Safe-lock.net dawid at safe-lock.net
Mon Jun 25 10:59:46 CEST 2012


Hello :)
I have the board with u-boot and I want modify the firmware.
To modify I must find rootfs files. I look for the files firmware (hexedit) 
and I don't visible the rootfs files. vmlinuz I'm extract good.
What I must do to etract the rootfs ( I must find the dir: /etc/ /home/)???

Please help me and sorry for me english :)



Log with printenv:
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
netdev=mii0
consoledev=ttyS0
modetty0=115200n8
EMAC=EMAC0
MACMODE=GMII
rootfile=rootfs.img
bootfile=uboot.bin
linuzfile=vmlinuz.bin
fullfile=upgrade.bin
bootsize=0x60000
kernelsize=0xc800000
rootfssize=0x000000
flashsize=33554432
console=console=ttyS0,115200
CASset=min
MALLOC_len=3
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) 
root=/dev/m
tdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvNetConfig); bootm 
0x2000
000;
ethaddr=00:50:43:00:00:01
eth1addr=00:50:43:00:00:02
mv_pon_addr=00:50:43:00:01:01
ethmtu=1500
eth1mtu=1500
nandEcc=1bit
eeeEnable=no
ethact=egiga0
ipaddr=192.168.1.1
serverip=192.168.1.100
memsize=127M
bootcmd=setenv bootargs $(console) root=/dev/ram0 rw load_ramdisk=1 
rdinit=/sbin
/init $(mvNetConfig) $(mvPhoneConfig) mem=$(memsize);bootm 0x2000100;
versioninfo=U-Boot V1.0.0T1 0x80000 0x0 0x83 0x82
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
mvNetConfig=mv_net_config=0
pcieTune=no



Logi with start board:
BootROM 1.34
Booting from NAND flash
BootROM: Image checksum verification PASSED


U-Boot 2009.08 (Sep 20 2011 - 17:28:41)

CPU:   Feroceon (Rev 1) @ 1200Mhz - LE, L2 @ 400Mhz
       DDR3 @ 400Mhz, TClock @ 200Mhz, P/V ID=7/13
DRAM:  128 MB
       CS 0: base 0x00000000 size 128 MB
       Addresses 26M - 0M are saved for the U-Boot usage.
NAND:  1bit HM ECC, Size: 32 MiB
Modules Detected:
       GPON module detected.
       TDM module.
       Ethernet Switch on MAC0.
       3xFE PHY Module.
       GE-PHY on Switch port #0.
Net:   egiga0 [PRIME], egiga1
Hit 1 to upgrade softwate version
Hit enter to stop autoboot:  0
select=0x0

NAND read: device 0 offset 0x1980000, size 0x100
 256 bytes read: OK
select=0x0
search=0x2

NAND read: device 0 offset 0x80000, size 0x937110
 9662736 bytes read: OK

NAND read: device 0 offset 0x30000, size 0x30000
 196608 bytes read: OK
## Booting kernel from Legacy Image at 02000100 ...
   Image Name:   Linux Kernel Image
   Image Type:   ARM Linux Kernel Image (lzma compressed)
   Data Size:    9662403 Bytes =  9.2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Uncompressing (lzma) Kernel Image ... OK
----------------------
|-->setup start tag...
----------------------
|-->setup memory tag...
----------------------
|-->setup cmdline tag...
----------------------
|-->setup marvell tag...
----------------------
|-->setup versioninfo tag...
----------------------
|-->setup end tag...
----------------------

Starting kernel ...

Linux version 2.6.21.5 (wangkai at localhost.localdomain) (gcc version 4.3.4 
(Buildroot

2010.05) ) #44 Tue Sep 20 17:53:59 CST 2011
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977
Machine: Feroceon-KW2
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
<7>On node 0 totalpages: 32512
<7>  Normal zone: 0 pages used for memmap
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists.  Total pages: 32258
Kernel command line: console=ttyS0,115200 root=/dev/ram0 rw load_ramdisk=1 
rdinit=/sbin/init

mv_net_config=0 mem=127M
PID hash table entries: 512 (order: 9, 2048 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 127MB = 127MB total
Memory: 116352KB available (3536K code, 714K data, 8168K init)
Mount-cache hash table entries: 512
<6>CPU: Testing write buffer coherency: ok
pdt_cspkernel_init
NET: Registered protocol family 16

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB
SDRAM_CS1 ....no such
SDRAM_CS2 ....no such
SDRAM_CS3 ....no such
DEVICE_CS0 ....no such
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base f3000000, size  16MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....base f4000000, size  16MB
PEX1_IO ....base f2100000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NAND_NOR_CS ....base f8000000, size   2MB
SPI_CS0 ....base f0000000, size  16MB
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
<4>SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
SPI_B_CS0 ....no such
BOOT_ROM_CS ....no such
<4>DEV_BOOTCS ....no such
CRYPT1_ENG ....no such
CRYPT2_ENG ....no such
PNC_BM ....base f5000000, size   1MB
ETH_CTRL ....base f5100000, size   1MB
PON_CTRL ....base f5200000, size   1MB
NFC_CTRL ....no such

  Marvell Development Board (LSP Version 
KW2_LSP_1.0.4_p26_KERNEL_2.6.21.5_NQ)-- 

ZTE-88F6560-FXXX  Soc: MV88F6560 Rev 2 LE

 Detected Tclk 200000000 and SysClk 400000000
g_pdwWdRsvMemBase is c8000000    g_dwWdRsvMemLen is 40052
magic has been changed!
g_pdwWdRegTableBase = c800000c
: success register character device for /dev/watchdog
Marvell USB EHCI Host controller #0: c0d75600
<4>PEX0 interface detected no Link.
PEX1 interface detected Link X4
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers disabled
SCSI subsystem initialized
Time: kw_clocksource clocksource has been installed.
NET: Registered protocol family 2
ip_rt_init() start call CSP_alloc_large_system_hash
 IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
ip_rt_init() call CSP_alloc_large_system_hash end
 TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
RTC has been updated!!!
RTC registered
cpufreq: Init kirkwood cpufreq driver
NTFS driver 2.1.28 [Flags: R/W].
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
<4>fuse init (API version 7.8)
<6>io scheduler noop registered
<6>io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
serial8250.1: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
0 - Base 0x00000000 , Size = 0x08000000.
8 - Base 0xf3000000 , Size = 0x01000000.
9 - Base 0xf2000000 , Size = 0x00100000.
10 - Base 0xf4000000 , Size = 0x01000000.
11 - Base 0xf2100000 , Size = 0x00100000.
12 - Base 0xf1000000 , Size = 0x00100000.
13 - Base 0xf8000000 , Size = 0x00200000.
14 - Base 0xf0000000 , Size = 0x01000000.
27 - Base 0xf5000000 , Size = 0x00100000.
28 - Base 0xf5100000 , Size = 0x00100000.
29 - Base 0xf5200000 , Size = 0x00100000.
mvPncVirtBase = 0xc8400000
  o 3 Giga ports supported
  o Giga PON port is #2: - 8 TCONTs supported
  o NETA acceleration mode 4
  o BM supported: short buffer size is 256 bytes
  o PnC supported
  o HWF supported
  o PMT supported
  o RX Queue support: 8 Queues * 512 Descriptors
  o TX Queue support: 8 Queues * 3072 Descriptors
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled
  o Proc tool API enabled
  o Switch support enabled
     o IGMP special processing support

  o Loading Switch QuarterDeck driver
    o Internal GE PHY Connected to Switch Port 0 Detected
    o Setting Switch CPU port (port #4) for 1000 Full with FC
    o Disable disconnected switch port (port #5) and force link down
    o Disable disconnected switch port (port #6) and force link down
  o Loading network interface(s)

  o Port 0 is connected to Linux netdevice
      o Using UBoot netconfig string
        net_config_str: 0
  o Working in External Switch mode
        giga p=0: mtu=1500, mac=c0d61f72
    o mii0, ifindex = 1, GbE port = 0

  o Warning: GbE port 1 is not connected to PHY/RGMII/Switch, skipping 
initialization


  o Port 2 is connected to Linux netdevice
        pon p=2: mtu=1500, mac=c0d61f72
    o mii1, ifindex = 2, GbE port = 2

e100: Intel(R) PRO/100 Network Driver, 3.5.17-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
Using Hamming 1-bit ECC for NAND device
NAND device: Manufacturer ID: 0x20, Chip ID: 0x75 (ST Micro NAND 32MiB 3,3V 
8-bit)
Scanning device for bad blocks
Bad eraseblock 667 at 0x00a6c000
Using static partition definition
Creating 8 MTD partitions on "nand_mtd":
0x00000000-0x02000000 : "whole flash"
0x00000000-0x00080000 : "u-boot"
0x01a40000-0x01ac0000 : "parameter tags"
0x00080000-0x00d00000 : "kernel0"
0x01c00000-0x02000000 : "middleware"
0x01ac0000-0x01c00000 : "usercfg"
0x00d00000-0x01980000 : "kernel1"
0x01980000-0x01a40000 : "others"





More information about the U-Boot mailing list