Rayeager PX2开发板上安装FreeBSD
时间:10-02
整理:3721RD
点击:
在PX2开发板上安装FreeBSD
PX2主芯片是RK3188(Cortex A9)所以FreeBSD支持FreeBSD
安装方法:
1. 下载
2. 汇编Kernel,安装在USB Flash(盘符da0)
# truncate -s1024MXXX.img
# mdconfig -f XXX.img -u0
# newfs /dev/md0
# mount /dev/md0 /mnt
# make TARGET_ARCH=armv6 kernel-toolchain
# make TARGET_ARCH=armv6 KERNCONF=RADXA buildkernel
# make TARGET_ARCH=armv6 buildworld
# make TARGET_ARCH=armv6 DESTDIR=/mnt installworld distribution
# umount /mnt
# mdconfig -d -u0
# sysctl kern.geom.debugflags=16
# dd if=XXX.img of=/dev/da0 bs=4096k
3. 获得rkcrc工具
4. 使用rkcrc
# cd ~/rkutils
# make rkcrc
5. 获得rkflashtool工具
6. 重新编写rkflashtool的Makefile和rkflashtool.c
7. 编译rkflashtool
# cd ~/rkflashtool
# make
8.
# cd ~/rkutils
# ./rkcrc -k /usr/obj/arm.armv6/usr/src/sys/RADXA/kernel.bin kernel.img
9.
# cd ~/rkflashtool
# ./rkflashtool p > parm.txt ---- Change KERNEL_IMG address 0x60408000 to 0x60400000 and save it
# cd ~/rkutils
#./rkcrc -p ../rkflashtool/parm.txt ../rkflashtool/parm.bin
10.
# cd ~/rkflashtool
# ./rkflashtool w 0x0 0x2 < parm.bin
11.
# ./rkflashtool w kernel < ../rkutils/kernel.img
12.
# cu -l /dev/ttyu0 -s 115200
13.启动开发板,运行FreeBSD。
分享自Ickey 电子工程社区 lover
PX2主芯片是RK3188(Cortex A9)所以FreeBSD支持FreeBSD
安装方法:
1. 下载
2. 汇编Kernel,安装在USB Flash(盘符da0)
# truncate -s1024MXXX.img
# mdconfig -f XXX.img -u0
# newfs /dev/md0
# mount /dev/md0 /mnt
# make TARGET_ARCH=armv6 kernel-toolchain
# make TARGET_ARCH=armv6 KERNCONF=RADXA buildkernel
# make TARGET_ARCH=armv6 buildworld
# make TARGET_ARCH=armv6 DESTDIR=/mnt installworld distribution
# umount /mnt
# mdconfig -d -u0
# sysctl kern.geom.debugflags=16
# dd if=XXX.img of=/dev/da0 bs=4096k
3. 获得rkcrc工具
4. 使用rkcrc
# cd ~/rkutils
# make rkcrc
5. 获得rkflashtool工具
6. 重新编写rkflashtool的Makefile和rkflashtool.c
7. 编译rkflashtool
# cd ~/rkflashtool
# make
8.
# cd ~/rkutils
# ./rkcrc -k /usr/obj/arm.armv6/usr/src/sys/RADXA/kernel.bin kernel.img
9.
# cd ~/rkflashtool
# ./rkflashtool p > parm.txt ---- Change KERNEL_IMG address 0x60408000 to 0x60400000 and save it
# cd ~/rkutils
#./rkcrc -p ../rkflashtool/parm.txt ../rkflashtool/parm.bin
10.
# cd ~/rkflashtool
# ./rkflashtool w 0x0 0x2 < parm.bin
11.
# ./rkflashtool w kernel < ../rkutils/kernel.img
12.
# cu -l /dev/ttyu0 -s 115200
13.启动开发板,运行FreeBSD。
分享自Ickey 电子工程社区 lover