索智官方给了 名为:eMMC_Patch_Release 的补丁包,我这边把S3的SDK包解压后,就把这个补丁文件夹覆盖了上去。
1.修改build/envsetup.sh的文件内容
"uboot")
echo "zmake uboot"
croot
cd ./bootloader/u-boot-2011.09
./build.sh -p sun8iw8p1_spinand_emmc --改了传参
croot
;;
2.之后先导入环境变量:
root@ubuntu:/home/s3/s3-emmc# source build/envsetup.sh
TARGET_TOP=/home/s3/s3-emmc
TARGET_OUT=/home/s3/s3-emmc/out/sun8iw8p1-linaro-5.3/linux/common/buildroot/
BUILD_SYS_DIR=/home/s3/s3-emmc/build
PATH=/home/s3/s3-emmc/out/sun8iw8p1-linaro-5.3/linux/common/buildroot/host/usr/bin:/root/anaconda3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/root/anaconda3/bin:/snap/bin
CROSS_COMPILE=/home/s3/s3-emmc/out/sun8iw8p1-linaro-5.3/linux/common/buildroot/host/usr/bin/arm-linux-gnueabi-
BUILDROOT_DIR=/home/s3/s3-emmc/buildroot
LICHEE_LINUX=/home/s3/s3-emmc/linux-3.4
LICHEE_LINUX_VER=3.4
LICHEE_CHIP=sun8iw8p1
TARGET_PRODUCT=zeta
BUILDROOT_OUT=/home/s3/s3-emmc/out/sun8iw8p1-linaro-5.3/linux/common/buildroot/
3.然后使用zmake all进行编译,由于初次使用全志的SDK进行打包编译,之后会生成一个sun8iw8p1_linux_zeta-cdr_uart0.img的镜像
问题一:
1.这个sd卡的镜像也是用PhoenixSuit进行烧录吗?我试了一下,进行到这里就不行了
--------fastboot partitions--------
mbr not exist
[ 5.258]Hit any key to stop autoboot: 0
work mode=0x10
run usb efex
buf queue page size = 2048
delay time 2500
usb init ok
set address 0x19
SUNXI_EFEX_ERASE_TAG
erase_flag = 0x1
FEX_CMD_fes_verify_status
FEX_CMD_fes_verify last err=0
the 0 mbr table is ok
the 1 mbr table is ok
the 2 mbr table is ok
the 3 mbr table is ok
*************MBR DUMP***************
total mbr part 5
part[0] name :bootloader
part[0] classname :DISK
part[0] addrlo :0x800
part[0] lenlo :0x4000
part[0] user_type :32768
part[0] keydata :0
part[0] ro :0
part[1] name :env
part[1] classname :DISK
part[1] addrlo :0x4800
part[1] lenlo :0x400
part[1] user_type :32768
part[1] keydata :0
part[1] ro :0
part[2] name :boot
part[2] classname :DISK
part[2] addrlo :0x4c00
part[2] lenlo :0x8000
part[2] user_type :32768
part[2] keydata :0
part[2] ro :0
part[3] name :rootfs
part[3] classname :DISK
part[3] addrlo :0xcc00
part[3] lenlo :0x16800
part[3] user_type :32768
part[3] keydata :0
part[3] ro :0
part[4] name :UDISK
part[4] classname :DISK
part[4] addrlo :0x23400
part[4] lenlo :0x0
part[4] user_type :33024
part[4] keydata :0
part[4] ro :0
do need erase flash
no part need to protect user data
SUNXI_EFEX_MBR_TAG
mbr size = 0x10000
sunxi sprite init fail when downlaod mbr --不执行
之后我就参考V3S的烧录方式,首先制作u-boot-sun8iw8p1.bin,然后制作zimage,rootfs.tar.bz2,最后参考《制作荔枝派Zero开发板(全志V3s) TF/SD卡启动盘》https://whycan.cn/t_547.html,进行制作,发现做完的SD卡也是没法启动,到这里我有些懵逼了。
问题二:是否我还需要修改其他文件来使得SD卡能正常作为启动介质呢?
谢谢各位,感激不尽
最近编辑记录 vkaoke (2019-04-18 15:52:17)
离线
离线