Firefly开源社区

标题: ubuntu编译问题 [打印本页]

作者: huad_    时间: 2020-7-3 09:49
标题: ubuntu编译问题
[ 本帖最后由 huad_ 于 2020-7-3 10:07 编辑 ]\n\n
平台: AIO-3399J           
软件: ubuntu            
参考网址:http://wiki.t-firefly.com/zh_CN/AIO-3399J/linux_compile_gpt.html

1.  下载了ubuntu rootfs :ubuntu_18.04_arm64_ext4_v2.02-17-g60db67e_20200427-2100_DESKTOP.7              
      解压之后,重命名到了 firefly-sdk/ubunturootfs/ubuntu_18.04_DESKTOP.img 目录

2.  cat device/rockchip/rk3399/aio-3399j-ubuntu.mk        
#!/bin/bash
CMD=`realpath $BASH_SOURCE`
CUR_DIR=`dirname $CMD`
source $CUR_DIR/firefly-rk3399-ubuntu.mk
# uboot defconfig
export RK_UBOOT_DEFCONFIG=firefly-rk3399
# kernel defconfig
export LINUX_KERNEL_DEFCONFI=firefly_linux_defconfig
# Kernel dts
export RK_KERNEL_DTS=rk3399-firefly-aio
# parameter for GPT table
export RK_PARAMETER=parameter-ubuntu.txt
# packagefile for make update image
export RK_PACKAGE_FILE=rk3399-ubuntu-package-file
# rootfs image path
export RK_ROOTFS_IMG=ubunturootfs/ubuntu_18.04_DESKTOP.img



3.   使用 ./build.sh 编译,会提示====Build ramboot ok!====
warning: /home/share/rk3399/firefly-sdk/ubunturootfs/ubuntu_18.04_DESKTOP.img not found!
please set correct  RK_ROOTFS_IMG  in  device/rockchip/.BoardConfig.mk
create parameter...done.
create misc.img...done.
create uboot.img...done.
create idbloader.img...done.
create trust.img...done.
create loader...done.
create boot.img...done.


原本ubunturootfs/ubuntu_18.04_DESKTOP.img 文件在执行./build.sh 之后就被删掉,然后提示这个文件不存在。
请帮忙查看一下,谢谢!   


作者: penguin    时间: 2020-7-3 11:55
#4. 更新SDK,并且后续更新不需要再次拉取远程仓库,直接执行以下命令即可
./bundle/update rk3399-linux-bundle

#5. 按照提示已经更新内容到 FETCH_HEAD,同步FETCH_HEAD到firefly分支
git rebase FETCH_HEAD

#6 更新共用仓库
./bundle/update common-linux-bundle
git rebase FETCH_HEAD
作者: huad_    时间: 2020-7-3 13:57
root@zxh-VirtualBox:/home/share/rk3399/firefly-sdk# ./bundle/update rk3399-linux-bundle
[Info]Update Bundle repo...
已经位于 'rk3399-linux-bundle'
-------------------------------------------
[Info]Already up to date!

root@zxh-VirtualBox:/home/share/rk3399/firefly-sdk# git rebase FETCH_HEAD
fatal: Needed a single revision
无效的上游 FETCH_HEAD
作者: huad_    时间: 2020-7-3 14:00
./bundle/update rk3399-linux-bundle
git rebase FETCH_HEAD
------  会有如上提示;
./bundle/update common-linux-bundle
git rebase FETCH_HEAD
------- 可以执行成功;

@penguin   请帮忙看看
作者: penguin    时间: 2020-7-3 14:09
把bundle目录删除掉,重新再git clone一遍。
作者: huad_    时间: 2020-7-8 08:49
重新拿了一份代码重新编译,正常了。谢谢 @penguin




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1