2020-01-02 freedom-u-sdk

使用清华或中科大AOSP源镜像下载Android源码

access remote smb folder under Ubuntu

sudo apt install sshfs
sudo sshfs [email protected]:/home/lingkong ~/remote_lingkong -o allow_other
https://blog.csdn.net/WEINILUO/article/details/50669164

install repo

  1. 解决同步源码Cannot get http://gerrit.googlesource.com/
    同步cm12.1初始化出现的问题:
    fatal: Cannot get https://gerrit.googlesource.com/git-repo/clone.bundle
    fatal: error [Errno 101] Network is unreachable
    repo安装问题

  2. 解决方法,先单独克隆repo,然后将git-repo里面的repo文件复制到bin目录,在同步源码的工作目录新建.repo文件夹,把git-repo重命名为repo复制到.repo目录下:
    git clone https://gerrit-googlesource.lug.ustc.edu.cn/git-repo

  3. 重新初始化:
    repo init -u git://github.com/CyanogenMod/android.git -b cm-12.1

  4. 同步开始
    repo sync -c -j8

build SiFive freedom-u-sdk

To build SiFive freedom-u-sdk, https://github.com/sifive/freedom-u-sdk, you can extract /work/SiFive-OE/SiFive-OE.tar.gz to home dir, and build u-boot by the following cmd:

  1. from home dir, 

     tar -xf  /work/SiFive-OE/SiFive-OE.tar.gz .

  2. from ~/SiFive-OE/riscv-sifive

     . ./meta-sifive/setup.sh

  3. from ~/SiFive-OE/riscv-sifive/build

     MACHINE=freedom-u540 bitbake u-boot

After all tasks are succeeded, u-boot image is generated in
~/SiFive-OE/riscv-sifive/build/tmp-glibc/deploy/images/freedom-u540/

To modify u-boot code, and then compile:

1. u-boot code is in ~/SiFive-OE/riscv-sifive/build/tmp-glibc/work/freedom_u540-oe-linux/u-boot/1_2019.07-r0/git, run the following cmd to recompile:

    MACHINE=freedom-u540 bitbake u-boot -f -c compile

2. u-boot image will be generated --->> ~/SiFive-OE/riscv-sifive/build/tmp-glibc/work/freedom_u540-oe-linux/u-boot/1_2019.07-r0/build/boot.bin

3. the latest build log is in ~/SiFive-OE/riscv-sifive/build/tmp-glibc/work/freedom_u540-oe-linux/u-boot/1_2019.07-r0/temp/:

   log.do_compile

4. generate ~/SiFive-OE/riscv-sifive/build/tmp-glibc/deploy/images/freedom-u540/ files, run :

    MACHINE=freedom-u540 bitbake u-boot -f -c deploy

compile zsbl and fsbl

MACHINE=freedom-u540 bitbake freedom-u540-c000-bootloader
result will be saved to:
offline/SiFive-OE/riscv-sifive/build/tmp-glibc/work/riscv64-oe-linux/freedom-u540-c000-bootloader/gitAUTOINC+128f282d17-r0/git/

U new release available,

  1. u-boot 在上面跑起来
  • zsbl和fsbl -> ok
  • u-boot porting

u-boot 在lxS7和4xU7的工作方式
haps上没有rom和tfcard如何加载zsbl、fsbl和u-boot

你可能感兴趣的:(2020-01-02 freedom-u-sdk)