Firefly Open Source Community

Title: Ubuntu install [Print This Page]

Author: metind    Time: 12/3/2018 00:06
Title: Ubuntu install






Dear All,

Just bought your board and tring to compile ubuntu and kernel , install them on board.
1. From your web side "http://en.t-firefly.com/index.php/doc/product/info/id/290.html" and for kernel side says "After the compilation is complete , the kernel.img and resource.img should be generated in the kernel folder.

If you need to compile a xxx.dts in the arch/arm64/boot/dts/rockchip/ directory, then

make xxx.img -j4".Which dts file must be used for this rk3399 board?
2.Parameter file:
CMDLINE:console=ttyFIQ0 root=/dev/mmcblk1p6 rw rootwait \
mtdparts=rk29xxnand:0x00002000@0x00002000(uboot),0x00002000@0x00004000(trust),\
0x00008000@0x00006000(resource),0x0000A000@0x0000E000(kernel),\
0x00002000@0x00018000(backup),-@0x0001A000(boot)

root=/dev/mmcblk1p6                             ---> rootfs partition
If the size of the root file partition is abnormal,
resize2fs /dev/mmcblk1p6

0x0000A000@0x0000E000(kernel)        ---> kernel partition
kernel                                                        --->  partition name
0x0000E000                                             --->  partition start address
0x0000A000                                            --->  partition size, generally do not need to pay attention


sudo upgrade_tool di kernel kernel.img
sudo upgrade_tool di boot    rootfs.img
...
kernel                                                         --->  on the parameter partition name
kernel.img                                                 --->  Compiled production kernel.img partition image

Document says a parameter file but i could find it.Where can i find it?Also I couldnt find rootfs file.



Where can i find any video or pdf document that explains all steps.Could you pls help me about these subjects.

Best regards,

Author: penguin    Time: 12/7/2018 09:29
It's documented in your document link of http://en.t-firefly.com/index.php/doc/product/info/id/290.html:

To compile for firefly-rk3399 board:

  make firefly_linux_defconfig
  make rk3399-firefly-linux.img -j4

To compile for aio-3399j board:

  make firefly_linux_defconfig
  make rk3399-firefly-aio-linux.img -j4

rk3399-firefly-linux.dts and rk3399-firefly-aio-linux.dts are located in arch/arm64/boot/dts/rockchip/.
They're the board device tree source file.
The command `make rk3399-firefly-aio-linux.img -j4` will simply compile the kernel and rk3399-firefly-aio-linux.dts,
which results in kernel.img and resource.img (contains rk3399-firefly-aio-linux.dtb and startup logo).





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1