Boot correctly!!!
I have compiled the 10.03 source.
Modified the kernel_config to include sata and usb support in kernel
__ __ _ _
| \/ | __ _ _ ____ _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| | | | (_| | | \ V / __/ | |
|_| |_|\__,_|_| \_/ \___|_|_|
_ _ ____ _
| | | | | __ ) ___ ___ | |_
| | | |___| _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
\___/ |____/ \___/ \___/ \__| ** uboot_ver:v0.0.2 **
** MARVELL BOARD: MONO LE
U-Boot 1.1.4 (Jun 29 2009 - 17:20:47) Marvell version: 3.4.14
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CDE60
Soc: 88F6192 A0 (DDR2)
CPU running @ 800Mhz L2 running @ 400Mhz
SysClock = 200Mhz , TClock = 166Mhz
DRAM CAS Latency = 3 tRP = 3 tRAS = 8 tRCD=3
DRAM CS[0] base 0x00000000 size 128MB
DRAM Total size 128MB 16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
Device 0 @ 0 0:
Model: MAXTOR STM3250820AS Firm: 3.AAE Ser#: 6QE09B50
Type: Hard Disk
Supports 48-bit addressing
Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
CPU : Marvell Feroceon (Rev 1)
Scanning partition header:
Warning: singn PrEr not found, use default offset 000c0000
Warning: singn KrNl not found, use default offset 002c0000
Warning: singn RoOt not found, use default offset 00540000
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME]
Hit any key to stop autoboot: 0
Marvell>>
Marvell>>
Marvell>> printenv
bootdelay=1
baudrate=115200
loads_echo=0
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
ethaddr=00:50:43:8a:24:19
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
uboot_ver=v0.0.2
ethact=egiga0
filesize=5a0000
fileaddr=40000
netmask=255.255.255.0
ipaddr=192.168.0.24
serverip=192.168.0.23
arcNumber=1681
bootargs=console=ttyS0,115200 root=/dev/sda1 rw rootfstype=ext2 init=/etc/preinit
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
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
bootargs_root=root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000
console=console=ttyS0,115200 mtdparts=nand_mtd:0xa0000@0x0(uboot),0x00010000@0x000a0000(param),0x00200000@0x000c0000(preroot),0x00280000@0x002c0000(uimage),0x01a00000@0x00540000(rootfs),0x000c0000@0x01f40000(misc),32m@0x0(flash)
bootcmd_f=nand reset; nand read.e 0x800000 0x000c4000 0x00200200; check_crc32 PrEr;
bootcmd=nand reset; nand read.e 0x800000 0x000c4000 0x00200200; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x002c4000 0x00200200; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root); bootm 0x40000;
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
disaMvPnp=no
enaAutoRecovery=no
Environment size: 1583/16379 bytes
Marvell>> setenv bootcmd nand read 0x40000 0x00100000 0x400000\; bootm 0x40000\;
Marvell>> setenv
Usage:
setenv - set environment variables
Marvell>> saveenv
Saving Environment to NAND...
Erasing redundant Nand...Writing to redundant Nand... Erasing Nand...Writing to Nand... done
Marvell>> boot
NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK
## Booting image at 00040000 ...
Image Name: Linux-2.6.30.10
Created: 2013-03-11 10:51:31 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1012476 Bytes = 988.7 kB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.30.10 (ramponis@ramponis-desktop) (gcc version 4.3.3 (GCC) ) #13 Mon Mar 11 11:51:25 CET 2013
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Marvell RD-88F6192-NAS Development Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
Kernel command line: console=ttyS0,115200 root=/dev/sda1 rw rootfstype=ext2 init=/etc/preinit
NR_IRQS:114
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 126944KB available (2504K code, 187K data, 104K init, 0K highmem)
Calibrating delay loop... 794.62 BogoMIPS (lpj=3973120)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 528 bytes
NET: Registered protocol family 16
Kirkwood: MV88F6192-A0, TCLK=166666667.
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.
PCI: bus0: Fast back to back transfers disabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 248
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
Driver 'sd' needs updating - please use bus_type methods
sata_mv sata_mv.0: version 1.28
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 21
ata2: SATA max UDMA/133 irq 21
MV-643xx 10/100/1000 ethernet driver version 1.4
mv643xx_eth smi: probed
net eth0: port 0 with MAC address 00:50:43:8a:24:19
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
cpuidle: using governor ladder
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
rtc-mv rtc-mv: setting system clock to 2025-05-29 16:34:07 UTC (1748536447)
usb 1-1: new high speed USB device using orion-ehci and address 2
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
ata1.00: ATA-7: MAXTOR STM3250820AS, 3.AAE, max UDMA/133
ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access ATA MAXTOR STM325082 3.AA PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 488397168 512-byte hardware sectors: (250 GB/232 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sda: sda1 sda2 sda3
sd 0:0:0:0: [sda] Attached SCSI disk
ata2: SATA link down (SStatus 0 SControl F300)
VFS: Mounted root (ext2 filesystem) on device 8:1.
Freeing init memory: 104K
Please be patient, while OpenWrt loads ...
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
- init -
Please press Enter to activate this console. device eth0 entered promiscuous mode
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
register_blkdev: cannot get major 8 for sd
register_blkdev: cannot get major 65 for sd
register_blkdev: cannot get major 66 for sd
register_blkdev: cannot get major 67 for sd
register_blkdev: cannot get major 68 for sd
register_blkdev: cannot get major 69 for sd
register_blkdev: cannot get major 70 for sd
register_blkdev: cannot get major 71 for sd
register_blkdev: cannot get major 128 for sd
register_blkdev: cannot get major 129 for sd
register_blkdev: cannot get major 130 for sd
register_blkdev: cannot get major 131 for sd
register_blkdev: cannot get major 132 for sd
register_blkdev: cannot get major 133 for sd
register_blkdev: cannot get major 134 for sd
register_blkdev: cannot get major 135 for sd
nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel paramater, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
xt_time: kernel timezone is -0000
IMQ driver loaded successfully.
Hooking IMQ before NAT on PREROUTING.
Hooking IMQ after NAT on POSTROUTING.
eth0: link up, 100 Mb/s, full duplex, flow control disabled
br-lan: port 1(eth0) entering forwarding state
BusyBox v1.15.3 (2012-03-06 13:55:59 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
Backfire (10.03, r24524) --------------------------
* 1/3 shot Kahlua In a shot glass, layer Kahlua
* 1/3 shot Bailey's on the bottom, then Bailey's,
* 1/3 shot Vodka then Vodka.
---------------------------------------------------
root@BlackArmor:~#
I have modified the env
added these
setenv mainlineLinux yes
setenv arcNumber 1681
modified these
setenv console ttyS0,115200;
setenv bootcmd nand read 0x40000 0x00100000 0x400000\; bootm 0x40000\;
setenv bootargs console=ttyS0,115200 root=/dev/sda1 rw rootfstype=ext2 init=/etc/preinit
and saved.
It boot using a sata ext2 partition as root
Ethernet, usb and sata work correcty.
I have only a problem...
After every reset the uboot reset the bootcmd to:
bootcmd=nand reset; nand read.e 0x800000 0x000c4000 0x00200200; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x002c4000 0x00200200; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root); bootm 0x40000;
So the device doen't load openwrt automatically and i need to set the env again and then run: boot
There is a solution?