内核文件系统烧制秘籍

启动u-boot后烧写内核和文件系统的步骤:
setenv ethaddr 00:11:22:33:44:56
setenv serverip 172.17.37.132 //设置tftpip
setenv ipaddr 172.17.37.43 // 设置本机ip
setenv netmask 255.255.255.0 // 设置子网
setenv gatewayip 172.17.37.254 //设置网关
setenv bootdelay 3 // 设置boot延时
setenv fileaddr 0x34200000 // 设置文件系统位置
setenv filesize 45d9c0 // 设置文件系统大小
setenv bootcmd bootm 0x34100000 //设置内核启动位置
// 设置内核启动文件系统的参数
setenv bootargs mem=32M console=ttyAMA0,115200 root=1f02 rootfstype=jffs2 mtdparts=phys_mapped_flash:1M(uboot),1M(kernel),9M(rootfs),21M(apps)
saveenv // 保存环境变量
erase 0x34100000 +0x100000 // 擦出以0x34100000 为起始地址,大小1M的空间 装载内核文件
tftp 0x34100000 kernel-psw.img //从tftp加载内核文件到0x34100000的起始位置
erase 0x34200000 +0x800000 //擦出以0先0x3420000 为起始位置 大小8M的空间 装载文件系统
tftp 0x34200000 rootfs-psw.jffs2 //从tftp加载文件系统到0x34100000的起始位置

udhcpc
mount -o nolock 172.17.37.9:/hisirun /nfsroot/






U-Boot 1.1.4 (Mar 18 2009 - 20:44:20)

U-Boot code: E0500000 -> E0517540 BSS: -> E051E2BC
HI_VERSION=U_BOOT_1_1_4-M08C0305B0301 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:44:14
RAM Configuration:
Bank #0: e0000000 256 MB
Flash: 16 MB
In: serial
Out: serial
Err: serial
MAC: 00-11-22-33-44-55
Hit any key to stop autoboot: 0
## Booting image at 34100000 ...
Image Name: hilinux
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 966956 Bytes = 944.3 kB
Load Address: e0a00000
Entry Point: e0a00000
OK
initrd_start 0x 0,initrd_end 0x 0
Starting kernel ...

Uncompressing Linux............................................................... done, booting the kernel.
Kernel Early-Debug on Level 5
Linux version 2.6.14-hi3511v100dmeb-release (root@ubuntu-pengshiwei) (gcc version 3.4.3 (release) (CodeSourcery ARM Q3cvs 2004)) #2 Fri Oct 28 10:17:38 CST 2011
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
Machine: Hi3511v100
Memory policy: ECC disabled, Data cache writeback
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
Kernel command line: mem=32M console=ttyAMA0,115200 root=1f02 rootfstype=jffs2 mtdparts=phys_mapped_flash:1M(uboot),1M(kernel),8M(rootfs),22M(apps)
PID hash table entries: 256 (order: 8, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 30268KB available (1

594K code, 331K data, 80K init)
Mount-cache hash table entries: 512
HI_VERSION=LINUX_2_6_14-M06C0303B0103 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:50:52
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Hisilicon clock system V0.01
Hisilicon PCI work at slave mode.
NetWinder Floating Point Emulator V0.97 (double precision)
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x0
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
Serial: AMBA PL011 UART driver
ttyAMA0 at MMIO 0x101f1000 (irq = 12) is a AMBA/PL011
ttyAMA1 at MMIO 0x101f2000 (irq = 13) is a AMBA/PL011
ttyAMA2 at MMIO 0x101f3000 (irq = 14) is a AMBA/PL011
io scheduler noop registered
RAMDISK driver initialized: 4 RAM disks of 8192K size 1024 blocksize
PPP generic driver version 2.4.2
PPP Deflate Compression module registered
NET: Registered protocol family 24
physmap flash device: 4000000 at 34000000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 8-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
phys_mapped_flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
mtd: phys_mapped_flash: partitioning exceeds flash size, truncating
3 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 3 MTD partitions on "phys_mapped_flash":
0x00000000-0x00100000 : "uboot"
0x00100000-0x00200000 : "kernel"
0x00200000-0x00a00000 : "rootfs"
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 80K
init started: BusyBox v1.1.2 (2009.03.18-12:41+0000) multi-call binary
mount: Mounting /dev/mtdblock/3 on /home/app failed: No such file or directory

_ _ _ _ _ _ _ _ _ _ _ _
\ _ _ _ _ _ ___
/ /__/ \ |_/
/ __ / - _ ___
/ / / / / /
_ _ _ _/ / / \_/ \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S10boot.sh
modprobe mmz.
Hisilicon Media Memory Zone Manager
modprobe hiether.
Generic PHY: Registered new driver
HIETHV100-M03C0301 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:53:51
Hisilicon ETHv100 net controler.
Hisilicon ETHv100 MDIO Bus: probed
Invalid HW-MAC Address: 00:00:00:00:00:00
Set Random MAC address: 9E:42:2F:DB:0F:91
modprobe nfs.
open telnet...
gpio driver load dev_name=/dev/gpio.
HIDMAC-MDC030003 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:52:37
SDIO-M05C0302 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:52:44
SDIO-M05C0302 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:52:44
Card stack initializing, please wait ............

....................

detect SD2.0 card
Enumerate_card successful for card in slot 0
Check card stack end,now you can do your job......................
Card stack checking, please wait ................................

detect SD2.0 card
Enumerate_card successful for card in slot 0
Check card stack end,now you can your job......................
SCSI subsystem initialized
mmcblk0: mmc0:0001 00000 3826MB
/dev/mmc/blk0: p1
register card!
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB1_1-M0001C030002 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:52:41
Clock to USB host has been enabled
hisilicon-ohci hisilicon-ohci.0: hisilicon OHCI
hisilicon-ohci hisilicon-ohci.0: new USB bus registered, assigned bus number 1
hisilicon-ohci hisilicon-ohci.0: irq 20, io mem 0xa0000000
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
GPIO_I2C-MDC030001 @Hi3511v110_OSDrv_1_0_0_7 2009-03-18 20:53:17
insmod gpioi2c OK!
insmod hidmac OK!
adv7179 driver init successful!
insmod adv_7179 OK!
insmod tlv_320aic31 OK!
tde: module license 'Copyright(c)' taints kernel.
TDE_MAIN_VERSION[v1.0.0.1] Build Time[Apr 2 2009, 15:00:28]
TDE_ADP_VERSION[hi3511 adp v1.0.0.3] Build Time[Apr 2 2009, 15:00:28]
insmod tde OK!
load succcessed!
Hisilicon UMAP device driver interface: v1.00
insmod hi3511_base OK!
Chip Version: Hi35110110
insmod hi3511_sys OK!
insmod hi3511_viu OK!
insmod hi3511_vou OK!
insmod hi3511_dsu OK!
load vpp.ko ....OK!
insmod hi3511_vpp OK!
insmod hi3511_venc OK!
insmod hi3511_group OK!
load vdec.ko ....OK
insmod hi3511_vdec OK!
load md.ko....OK!
insmod hi3511_md OK!
insmod hi3511_sio OK!
insmod hi3511_ai OK!
insmod hi3511_ao OK!
insmod hi3511_chnl OK!
insmod hi3511_h264e OK!
load hi3511_h264d.ko ....OK
insmod hi3511_h264d OK!
insmod hi3511_jpege OK!
hifb info: HIFB_MAIN_VERSION[v1.0.0.2] Build Time[Apr 2 2009, 15:00:37]
hifb info: video:vram0_size=6291456,vram2_size=1024
hifb info: succeed in registering the fb0: ovl0 frame buffer device
hifb info: succeed in registering the fb1: ovl2 frame buffer device
insmod hifb OK!
load succcessed!
modprobe udhcpc packet
NET: Registered protocol family 17
NET: Registered protocol family 1
receive queue setup with 64 kmem_cache buffers
io scheduler cfq registered
[RCS]: /etc/init.d/S80network
Auto login as root ...
Jan 1 00:00:08 login[404]: root login on `0'



BusyBox v1.1.2 (2009.03.18-12:41+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Welcome to HiLinux.
None of nfsroot found in cmdline.
~ $ PHY: 0:01 - Link is Up - 100/Full

相关文档
最新文档