roboforum.ruТехнический форум по робототехнике. |
|
|
mini2440 / # mkfs.reiserfs /dev/mmcblk0p1
mini2440 / # mkdir /mnt/sd
mini2440 / # mount /dev/mmcblk0p1 /mnt/sd/
mini2440 / # cd / <-- для хоста здесь перейти в рут каталог
mini2440 / # tar cpf - ./bin ./dev ./etc ./home ./lib ./media ./opt ./packages ./root ./sbin ./usr ./var | (cd /mnt/sd; tar xvpf - )
mini2440 / # rm -rf /mnt/sd/dev/.udev
mini2440 / # mkdir /mnt/sd/proc
mini2440 / # mkdir /mnt/sd/sys
mini2440 / # mkdir /mnt/sd/tmp
mini2440 / # mkdir /mnt/sd/mnt
MINI2440 # setenv bootargs console=ttySAC0,115200 noinitrd init=/sbin/init mini2440=3tbc root=/dev/mmcblk0p1 rootdelay=2 rootfstype=reiserfs
MINI2440 # saveenv
setenv bootargs console=ttySAC0,115200 noinitrd init=/sbin/init mini2440=3tbc rootfstype=reiserfs root=/dev/mmcblk0 rw rootwait ip=192.168.24.40:192.168.24.1:192.168.24.1:255.255.255.0
U-Boot 1.3.2-mini2440 (Jul 13 2010 - 23:53:33)
I2C: ready
DRAM: 64 MB
NOR Flash not found. Use hardware switch and 'flinit'
Flash: 0 kB
NAND: Bad block table not found for chip 0
Bad block table not found for chip 0
256 MiB
Found Environment offset in OOB..
Video: 240x320x16bit
NAND read: device 0 offset 0x580000, size 0x40000
262144 bytes read: OK
USB: S3C2410 USB Deviced
In: serial
Out: serial
Err: serial
MAC: 08:08:11:18:12:27
Hit any key to stop autoboot: 3 2 1 0
Loading from NAND 256MiB 3,3V 8-bit, offset 0x80000
Image Name:
Created: 2010-07-29 21:44:34 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2209256 Bytes = 2.1 MB
Load Address: 30008000
Entry Point: 30008000
## Booting kernel from Legacy Image at 32000000 ...
Image Name:
Created: 2010-07-29 21:44:34 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2209256 Bytes = 2.1 MB
Load Address: 30008000
Entry Point: 30008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
Uncompressing Linux............................................................................................................................................ done, booting the kernel.
Linux version 2.6.32.2-Roboforum (root@calculate) (gcc version 4.4.3 (Gentoo 4.4.3-r2 p1.2) ) #5 Fri Jul 30 01:43:17 MSD 2010
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: FriendlyARM Mini2440 development board
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: console=ttySAC0,115200 noinitrd init=/sbin/init mini2440=3tbc nfsroot=192.168.0.2:/tftproot/root_qtopia.jffs2 root=/dev/nfs rw rootfstype=jffs2 ip=192.168.0.5
PID hash table entries: 256 (order: -2, 1024 bytes)
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: 60292KB available (4028K code, 399K data, 152K init, 0K highmem)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:85
irq: clearing subpending status 00000002
Console: colour dummy device 80x30
console [ttySAC0] enabled
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
S3C Power Management, Copyright 2004 Simtec Electronics
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
Using PLL table for 12MHz crystal
cpufreq: 27 PLL entries
S3C24XX CPU Frequency driver, s3c244x cpu support
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
s3c-i2c s3c2440-i2c: slave address 0x10
s3c-i2c s3c2440-i2c: bus frequency set to 98 KHz
s3c-i2c s3c2440-i2c: i2c-0: S3C I2C adapter
cfg80211: Calling CRDA to update world regulatory domain
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
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
yaffs Jul 30 2010 00:34:30 Installing.
JFFS2 version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
msgmni has been set to 117
alg: No test for stdrng (krng)
io scheduler noop registered (default)
Console: switching to colour frame buffer device 60x53
fb0: s3c2410fb frame buffer device
backlight initialized
leds initialized
buttons initialized
pwm initialized
adc initialized
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
loop: module loaded
S3C24XX NAND Driver, (c) 2004 Simtec Electronics
s3c24xx-nand s3c2440-nand: Tacls=3, 29ns Twrph0=7 69ns, Twrph1=3 29ns
s3c24xx-nand s3c2440-nand: NAND soft ECC
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 892 at 0x000006f80000
Creating 5 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000060000 : "u-boot"
0x000000060000-0x000000080000 : "u-boot_env"
0x000000080000-0x000000580000 : "kernel"
0x000000580000-0x0000005a0000 : "splash"
0x0000005a0000-0x000008000000 : "rootfs"
dm9000 Ethernet Driver, V1.31
eth0: dm9000e at c487a300,c487e304 IRQ 51 MAC: 08:90:90:90:90:90 (chip)
Atmel at76x USB Wireless LAN Driver 0.17 loading
usbcore: registered new interface driver at76c50x-usb
usbcore: registered new interface driver zd1211rw
usbcore: registered new interface driver rtl8187
usbcore: registered new interface driver zd1201
usbcore: registered new interface driver rt2500usb
usbcore: registered new interface driver rt73usb
usbcore: registered new interface driver rt2800usb
usbcore: registered new interface driver ar9170usb
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
s3c2410-ohci s3c2410-ohci: S3C24XX OHCI
s3c2410-ohci s3c2410-ohci: new USB bus registered, assigned bus number 1
s3c2410-ohci s3c2410-ohci: irq 42, io mem 0x49000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0001
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: S3C24XX OHCI
usb usb1: Manufacturer: Linux 2.6.32.2-Roboforum ohci_hcd
usb usb1: SerialNumber: s3c24xx
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core
USB Serial support registered for FTDI USB Serial Device
usbcore: registered new interface driver ftdi_sio
ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver
mice: PS/2 mouse device common for all mice
s3c2410 TouchScreen successfully loaded
input: s3c2410 TouchScreen as /class/input/input0
S3C24XX RTC, (c) 2004,2006 Simtec Electronics
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-rtc s3c2410-rtc: rtc core: registered s3c as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v0.1.0)
initializing s3c2440 camera interface......
s3c2440 camif init done
Loading OV9650 driver.........
SCCB address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
SCCB address 0x60, manufacture ID 0xFFFF, expect 0x7FA2
No OV9650 found!!!
S3C2410 Watchdog Timer, (c) 2004 Simtec Electronics
s3c2410-wdt s3c2410-wdt: watchdog inactive, reset disabled, irq enabled
cpuidle: using governor ladder
s3c-sdi s3c2440-sdi: powered down.
s3c-sdi s3c2440-sdi: mmc0 - using dma, sw SDIO IRQ
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI UDA134X
No device for DAI s3c24xx-i2s
S3C24XX_UDA134X SoC Audio driver
UDA134X SoC Audio Codec
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
#0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
lib80211: common routines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: setting system clock to 2010-09-04 17:55:16 UTC (1283622916)
eth0: link down
IP-Config: Guessing netmask 255.255.255.0
IP-Config: Complete:
device=eth0, addr=192.168.0.5, mask=255.255.255.0, gw=255.255.255.255,
host=192.168.0.5, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=192.168.0.2, rootpath=
Looking up port of RPC 100003/2 on 192.168.0.2
eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
rpcbind: server 192.168.0.2 not responding, timed out
Root-NFS: Unable to get nfsd port number from server, using default
Looking up port of RPC 100005/1 on 192.168.0.2
Root-NFS: Unable to get mountd port number from server, using default
Root-NFS: Server returned error -5 while mounting /tftproot/root_qtopia.jffs2
VFS: Unable to mount root fs via NFS, trying floppy.
List of all partitions:
1f00 384 mtdblock0 (driver?)
1f01 128 mtdblock1 (driver?)
1f02 5120 mtdblock2 (driver?)
1f03 128 mtdblock3 (driver?)
1f04 125312 mtdblock4 (driver?)
No filesystem could mount root, tried: jffs2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
Backtrace:
[<c0033228>] (dump_backtrace+0x0/0x10c) from [<c0337780>] (dump_stack+0x18/0x1c)
r7:c03bcd78 r6:00008000 r5:c3812006 r4:c044f590
[<c0337768>] (dump_stack+0x0/0x1c) from [<c03377d0>] (panic+0x4c/0x114)
[<c0337784>] (panic+0x0/0x114) from [<c0008e30>] (mount_block_root+0x1e8/0x228)
r3:00000000 r2:80000000 r1:c3823f60 r0:c03bcd10
[<c0008c48>] (mount_block_root+0x0/0x228) from [<c0008f34>] (mount_root+0xc4/0xfc)
[<c0008e70>] (mount_root+0x0/0xfc) from [<c0009094>] (prepare_namespace+0x128/0x180)
r5:c001f81d r4:c044ee00
[<c0008f6c>] (prepare_namespace+0x0/0x180) from [<c00084b0>] (kernel_init+0xe0/0x114)
r5:c001e1b0 r4:c044ebc0
[<c00083d0>] (kernel_init+0x0/0x114) from [<c004c638>] (do_exit+0x0/0x620)
r5:00000000 r4:00000000
setenv bootargs console=ttySAC0,115200 noinitrd init=/sbin/init mini2440=3tbc root=/dev/nfs rw nfsroot=192.168.24.1:/tftproot/root_gentoo ip=192.168.24.40:192.168.24.1:192.168.24.1:255.255.255.0
calculate ~ # cat 0/firewall
MINI2440="192.168.24.40"
###############################################################################
# Enable ip_forward
###############################################################################
echo "1" > /proc/sys/net/ipv4/ip_forward
###############################################################################
# Default Rules ACCEPT
###############################################################################
iptables -F
iptables -t nat -F
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -s $MINI2440 -j MASQUERADE
# setenv bootargs console=ttySAC0,115200 noinitrd init=/sbin/init mini2440=3tbc root=/dev/mmcblk0p1 rootdelay=2 rw
# saveenv
mmc0: new SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.83 GiB
mmcblk0: p1
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 179:1.
Freeing init memory: 116K
Warning: unable to open an initial console.
Failed to execute /sbin/init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Backtrace:
[<c002a1cc>] (dump_backtrace+0x0/0x10c) from [<c0383410>] (dump_stack+0x18/0x1c)
r7:00000000 r6:00000000 r5:c001e8cc r4:c04afff0
[<c03833f8>] (dump_stack+0x0/0x1c) from [<c0383460>] (panic+0x4c/0x114)
[<c0383414>] (panic+0x0/0x114) from [<c0025598>] (init_post+0xa8/0x10c)
r3:00000000 r2:c3993100 r1:c3993200 r0:c040f02c
[<c00254f0>] (init_post+0x0/0x10c) from [<c00084b4>] (kernel_init+0xe4/0x114)
r5:c001e8cc r4:c04af5c0
[<c00083d0>] (kernel_init+0x0/0x114) from [<c00435f8>] (do_exit+0x0/0x620)
r5:00000000 r4:00000000
# setenv bootargs console=ttySAC0,115200 noinitrd mini2440=3tbc root=/dev/mmcblk0p1 rootdelay=2 rw
# saveenv
setar писал(а):я не уверен но rw всегда встречал после файловой системы
попробуйте root=/dev/mmcblk0p1 rw rootwait
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 3