定制最简linux和根文件系统(平台龙芯1B开发板)(4)

2019-09-01 13:58

(16) Default number of RAM disks (65536) Default RAM disk size (kbytes) General setup --->

[*] Initial RAM filesystem and RAM disk (initramfs/initrd) support (/nfsramdisk/LS1B) Initramfs source file(s) (0) User ID to map to 0 (user root) (NEW) (0) Group ID to map to 0 (group root) (NEW) [*] Support initial ramdisks compressed using gzip (NEW) 保存退出

4.2. 编译

刚才配置好了,这里编译只需make一下就可以了 [root@localhost 1b-linux-3.0-d8b47bb]# make

然后,慢慢等,直到编译完成。 LD .tmp_vmlinux2 KSYM .tmp_kallsyms2.S AS .tmp_kallsyms2.o LD vmlinux

SYSMAP System.map

SYSMAP .tmp_System.map

CC arch/mips/boot/compressed/dummy.o OBJCOPY arch/mips/boot/compressed/vmlinux.bin GZIP arch/mips/boot/compressed/vmlinux.bin.z OBJCOPY arch/mips/boot/compressed/piggy.o LD vmlinuz STRIP vmlinuz

[root@localhost 1b-linux-3.0-d8b47bb]# ls -l vmlinu* -rwxr-xr-x 1 root root 8520259 08-29 14:07 vmlinux -rw-r--r-- 1 root root 10324555 08-29 14:07 vmlinux.o -rwxr-xr-x 1 root root 3419144 08-29 14:07 vmlinuz [root@localhost 1b-linux-3.0-d8b47bb]#

这时候,编译完成了。

16

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 to execute loading image:/dev/mtd0 Press any other key to abort. 00

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


定制最简linux和根文件系统(平台龙芯1B开发板)(4).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:小学生良好行为习惯养成教育工作总结

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: