发布时间 : 星期三 文章定制最简linux和根文件系统(平台龙芯1B开发板)更新完毕开始阅读ade2f25102768e9950e73814
5. 启动运行linux
5.1. 拷贝vmlinux到tftp服务器目录下
我这里tftp服务之前配好的,直接用了。
[root@localhost 1b-linux-3.0-d8b47bb]# cp vmlinux /tftpboot/
5.2. 设置PMON的ip地址
给开发板通电,按空格键进入PMON。
Bad eraseblock 802 at 0x06440000 NANDFlash info:
erasesize 131072 B writesize 2048 B oobsize 64 B lxy: update_usb, no ! AUTO
Press
PMON>
开发板ip为192.168.1.154,主机为192.168.1.156 PMON> ifaddr syn0 192.168.1.154 bootp=8000b8ac PMON>
5.3. 下载内核
PMON> load tftp://192.168.1.156/vmlinux Loading file: tftp://192.168.1.156/vmlinux (elf)
0x80200000/7802128 + 0x80970d10/298880(z) + 8654 syms\\ Entry address is 805e5740 PMON>
5.4. 启动linux
PMON> g rdinit=/sbin/init console=ttyS2,115200
zero at v0 v1 a0 a1 a2 a3 00000000 00000000 00000000 00000000 00000003 a3dffca0 a3dffcb0 800cc2c0
17
t0 t1 t2 t3 t4 t5 t6 t7 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 s0 s1 s2 s3 s4 s5 s6 s7 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 t8 t9 k0 k1 gp sp s8 ra 00000000 00000000 00000000 00000000 00000000 a3dffc80 00000000 8007aed0
Linux version 3.0.0 (root@localhost.localdomain) (gcc version 3.4.6) #2 Thu Aug 29 14:07:35 CST 2013
busclock=115500000, cpuclock=231000000, memsize=64, highmemsize=0 bootconsole [early0] enabled
CPU revision is: 00004220 (Loongson LS1X) Determined physical RAM map: 正常启动后
loop: module loaded
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit) lxy: erasesize= 0x20000, wirtesize= 0x800, oobsize= 0x40 ! Scanning device for bad blocks
Bad eraseblock 1 at 0x000000020000 Bad eraseblock 488 at 0x000003d00000 Bad eraseblock 744 at 0x000005d00000 Bad eraseblock 802 at 0x000006440000 Creating 3 MTD partitions on \
0x000000000000-0x000000e00000 : \0x000000e00000-0x000007200000 : \0x000007200000-0x000008000000 : \TCP cubic registered
NET: Registered protocol family 17 Registering the dns_resolver key type
drivers/rtc/hctosys.c: unable to open rtc device (rtc0) Freeing unused kernel memory: 2740k freed #mount all... #Starting mdev... / # ls
bin etc lib mnt root sys usr dev home linuxrc proc sbin tmp var
18