Difference between revisions of "IoTGateway/BSP/Linux/Linux BSP User Guide Debian9 for rk"
Line 112: | Line 112: | ||
== <span style="color:#0070c0">Boot From SD Card Image (DS100-Lite/DMS-53)</span> == | == <span style="color:#0070c0">Boot From SD Card Image (DS100-Lite/DMS-53)</span> == | ||
− | === Download | + | === Step1 Download === |
<small> Download tool'''''<big>rockdev.tar.gz</big>''''' and '''''<big>SDDiskTool_v1.56.7z</big>.'''''</small> | <small> Download tool'''''<big>rockdev.tar.gz</big>''''' and '''''<big>SDDiskTool_v1.56.7z</big>.'''''</small> | ||
Line 118: | Line 118: | ||
<small> Download path : </small>[https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4 https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4] | <small> Download path : </small>[https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4 https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4] | ||
− | === Create Upadte Image (Linux) === | + | === Step2 Create Upadte Image (In Linux env) === |
− | step 1 $tar zxvf rockdev.tar.gz | + | step 2-1 $tar zxvf rockdev.tar.gz |
− | step 2 Copy all linux Image to rockdev/Image folder | + | step 2-2 Copy all linux Image to rockdev/Image folder |
− | step 3 Check your Image path setting in rk3399-package-file | + | step 2-3 Check your Image path setting in rk3399-package-file |
− | step 4 $./rk3399-mkupdate.sh | + | step 2-4 $./rk3399-mkupdate.sh |
− | step 5 Creat the update.img in rockdev/update.img | + | step 2-5 Creat the update.img in rockdev/update.img |
− | === Create SD Card (Windows) === | + | === Step3 Create SD Card (In Windows env) === |
− | step 1 Unzip SDDiskTool_v1.56 | + | step 3-1 Unzip SDDiskTool_v1.56 |
− | step 2 Run SD_Firmware_Tool | + | step 3-2 Run SD_Firmware_Tool |
− | step 3 Insert the SD card to your PC and push the botton "Resotore" | + | step 3-3 Insert the SD card to your PC and push the botton "Resotore" |
− | step 4 Chooes the SD Boot and push the botton "Create" | + | step 3-4 Choose firmware (choose the update.img) |
+ | |||
+ | step 3-5 Chooes the SD Boot and push the botton "Create" | ||
+ | |||
+ | step 3.6 Finished | ||
== <span style="color:#0070c0">Modules</span> == | == <span style="color:#0070c0">Modules</span> == |
Revision as of 04:05, 24 July 2019
Contents
- 1 Linux BSP Version
- 2 Linux BSP Document
- 3 Get Docker Image
- 4 Run Docker example
- 5 Install Some tools For Rockchip Linux v2.07 version
- 6 Getting Debian Source Code
- 7 Build U-boot
- 8 Build Kernel
- 9 Build DS-100 Kernel
- 10 Build DS-100Lite Kernel
- 11 Build Recovery
- 12 Build Buildroot rootfs
- 13 Build Rootfs
- 14 How to do about update DS100 and DS100L Platform?
- 15 Download DS100 Debian Demo Images
- 16 Boot From SD Card Image (DS100-Lite/DMS-53)
- 17 Modules
- 18 Add CIFS
Linux BSP Version
Debian9
Linux BSP Document
Get Docker Image
$ docker pull advrisc/u16.04-rklbv1
Run Docker example
$docker run -it --name rk_linux --privileged -v /home/adv/rk3399_v20:/home/adv/BSP:rw advrisc/u16.04-rklbv1:latest /bin/bash
Install Some tools For Rockchip Linux v2.07 version
$sudo apt-get install libssl-dev
$sudo apt-get install texinfo
$sudo apt-get install liblz4-tool
$sudo apt-get install genext2fs
$sudo apt-get install time
Getting Debian Source Code
Step1 : To pull down the Linux source tree to your working directory from the repositories as specified in the default manifest
$ mkdir rk3399
$ mkdir bin
$ cd rk3399/
$ curl https://storage.googleapis.com/git-repo-downloads/repo > ../bin/repo
$ chmod a+x ../bin/repo
$ ../bin/repo init -u https://github.com/ADVANTECH-Rockchip/linux-manifest.git -b rk3399_linux_v2.0
$ ../bin/repo sync
Build U-boot
$cd rk3399/u-boot/
$./make.sh evb-rk3399
Build Kernel
Build DS-100 Kernel
$cd rk3399/kernel/
$make ARCH=arm64 rockchip_ds100_defconfig
$make ARCH=arm64 rk3399-ds100.img -j8
Build DS-100Lite Kernel
$cd rk3399/kernel/
$make ARCH=arm64 rockchip_ds100l_defconfig
$make ARCH=arm64 rk3399-ds100l.img -j8
Build Recovery
$./build.sh recovery
Build Buildroot rootfs
$./build.sh rootfs
Build Rootfs
Building base debian system by ubuntu-build-service from linaro
$cd rootfs/
$sudo apt-get install binfmt-support qemu-user-static live-build
$sudo dpkg -i ubuntu-build-service/packages/*
$sudo apt-get install -f
$RELEASE=stretch TARGET=desktop ARCH=arm64 ./mk-base-debian.sh
Building rk-debian rootfs
$VERSION=debug ARCH=arm64 ./mk-rootfs-stretch-arm64.sh
Creating the ext4 image
$./mk-image.sh
$cd ..
$./mkfirmware.sh debian
How to do about update DS100 and DS100L Platform?
If DS100 in Linux(Debian9), you want to upgrade to Linux(Debian9)
If DS100 in Android(7.1.2), you want to upgrade to Linux(Debian9)
Download DS100 Debian Demo Images
Boot From SD Card Image (DS100-Lite/DMS-53)
Step1 Download
Download toolrockdev.tar.gz and SDDiskTool_v1.56.7z.
Download path : https://github.com/ADVANTECH-Rockchip/rk3399_tools/tree/linux_4.4
Step2 Create Upadte Image (In Linux env)
step 2-1 $tar zxvf rockdev.tar.gz
step 2-2 Copy all linux Image to rockdev/Image folder
step 2-3 Check your Image path setting in rk3399-package-file
step 2-4 $./rk3399-mkupdate.sh
step 2-5 Creat the update.img in rockdev/update.img
Step3 Create SD Card (In Windows env)
step 3-1 Unzip SDDiskTool_v1.56
step 3-2 Run SD_Firmware_Tool
step 3-3 Insert the SD card to your PC and push the botton "Resotore"
step 3-4 Choose firmware (choose the update.img)
step 3-5 Chooes the SD Boot and push the botton "Create"
step 3.6 Finished
Modules
EWM-C117
EWM-W163M201E
EWM-W188
EWM-4G Module
Add CIFS
Support CIFS
Add CIFS config in kernel config
CONFIG_FAT_DEFAULT_IOCHARSET="utf8"
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
+CONFIG_CIFS=y
+CONFIG_CIFS_XATTR=y
+CONFIG_CIFS_POSIX=y
CONFIG_SQUASHFS=y
CONFIG_NFS_FS=y
CONFIG_NFS_V3_ACL=y
$sudo apt-get update
$sudo apt-get install cifs-utils
$mkdir /tmp_mount
$sudo mount.cifs //xxx.xxx.xx.xx/clayder /tmp_mount -o username=clayder<--example
- //xxx.xxx.xx.xx/clayder Network PC share folder
- /tmp_mount DS100 target folder