Jump to content

daisuke

Members
  • Posts

    6
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Unplugged the Tinker Board, took a break for several hours, established a serial port session to FTDI serial port from my laptop, then plug in TB again. And I can see the serial port output. Not sure what mattered. But now everything works.
  2. In order to review the Tinker Board boot logs via serial console, I set up armbianEnv.txt to get the logs. But Armbian didn't output anything. Can anyone tell me what is wrong? As long as I reviewed boot.cmd, the serial port was assigned to /dev/ttyS2. So I used UART2 GPIO pins (GP7C7 for TX, GP7C6 for RX) to interact. (snip) if test "${console}" = "serial" || test "${console}" = "both"; then setenv consoleargs "console=ttyS2,115200n8 ${consoleargs}"; fi (snip) The barudrate is 115200. Of course, I re-checked my connection between USB-UART serial cable and UART2 GPIO pins (USB-UART RX to GP7C7TX, USB-UART TX to GP7C6 RX). Any information is helpful and appreciated. Thanks. ---- Referenced Doc: https://docs.armbian.com/User-Guide_Allwinner_overlays/#example-bootarmbianenvtxt-contents my armbianEnv.txt: I added console=serial. verbosity=1 console=serial overlay_prefix=rockchip overlays=i2c1 i2c4 spi2 spidev2 uart1 uart2 rootdev=UUID=(stripped) rootfstype=ext4 usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u USB UART Cable: FTDI TTL-232R-3V3 Board Product: ASUS Tinker Board (Power supply via GPIO, 5V4A) Armbian Image File: Armbian_20.05.2_Tinkerboard_buster_current_5.4.44_minimal.img.xz OS Info: root@tinkerboard:/boot# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=tinkerboard BOARD_NAME="Tinkerboard" BOARDFAMILY=rockchip BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=2efd215a DISTRIBUTION_CODENAME=buster DISTRIBUTION_STATUS=supported VERSION=20.05.2 LINUXFAMILY=rockchip BRANCH=current ARCH=arm IMAGE_TYPE=stable BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image root@tinkerboard:/boot# uname -a Linux tinkerboard 5.4.44-rockchip #20.05.2 SMP PREEMPT Wed Jun 3 10:43:15 CEST 2020 armv7l GNU/Linux
  3. Putting the .ignore_changes did work fine. The original title was a little bit wrong. What I wanted to do is to build a v20.05 image and to get its kernel source code (the actual version is 5.4.57 rather than 5.7.14). The correct way to do it is Clone the master (https://github.com/armbian/build.git) Run vagrant if necessary (cd ./config/templates; vagrant up; vagrant ssh; cd armbian) Run sudo git checkout origin/v20.05 Run sudo touch .ignore_changes Run ./compile.sh BOARD=tinkerboard RELEASE=buster BRANCH=current BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no INSTALL_HEADERS=yes BUILD_MINIMAL=yes INSTALL_KSRC=yes And the following file was created under output/images. Armbian_20.05.7_Tinkerboard_buster_current_5.4.57_minimal.img The image file includes a src archive file on /usr/src. root@tinkerboard:~# ls /usr/src/ linux-headers-5.4.57-rockchip linux-rockchip-current_5.4.57_20.05.7_config.xz linux-source-5.4.57-rockchip.tar.xz Thanks guys.
  4. I found it in the document after posting this and now I've being trying it, thanks. I will try this option as well later on.
  5. I'm trying to build a kernel driver for 5.7.14 for my custom image but couldn't find a linux-source package for the kernel version at https://mirrors.netix.net/armbian/apt/pool/main/l/ I tried to use armbian-config but it didn't show it, either (5.4.44 was listed instead). Where can I get 5.7.14 source code? I checked out Armbian Build v20.05( https://github.com/armbian/build/releases/tag/v20.05 )and created an image with the following options: BOARD=tinkerboard RELEASE=buster BRANCH=current BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no INSTALL_HEADERS=yes BUILD_MINIMAL=yes The system information is as follows (on Tinker Board): root@tinkerboard:~# cat /etc/armbian-release # PLEASE DO NOT EDIT THIS FILE BOARD=tinkerboard BOARD_NAME="Tinkerboard" BOARDFAMILY=rockchip BUILD_REPOSITORY_URL=https://github.com/armbian/build BUILD_REPOSITORY_COMMIT=04ae9e4f DISTRIBUTION_CODENAME=buster DISTRIBUTION_STATUS=supported VERSION=20.08.0-trunk LINUXFAMILY=rockchip BRANCH=current ARCH=arm IMAGE_TYPE=user-built BOARD_TYPE=conf INITRD_ARCH=arm KERNEL_IMAGE_TYPE=Image root@tinkerboard:~# cat /etc/os-release PRETTY_NAME="Armbian 20.08.0-trunk Buster" NAME="Debian GNU/Linux" VERSION_ID="10" VERSION="10 (buster)" VERSION_CODENAME=buster ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" root@tinkerboard:~# uname -r 5.7.14-rockchip I also found weird stuff in install.log. I checked out v20.05 but the log said the build.sh was installing v20.08. I'm missing something. What is it? # output/debug/install.log --- dpkg-deb: building package 'armbian-firmware' in 'armbian-firmware_20.08.0-trunk_all.deb'. dpkg-deb: building package 'armbian-firmware-full' in 'armbian-firmware-full_20.08.0-trunk_all.deb'. dpkg-deb: building package 'linux-buster-root-current-tinkerboard' in '/home/vagrant/armbian/.tmp/buster/linux-buster-root-current-tinkerboard_20.08.0-trunk_armhf.deb'. (snip) Any suggestions are appreciated. Thanks.
  6. I'm trying to build 4.19 kernel modules for Tinkerboard with Armbian's build script (https://github.com/armbian/build). But when I chose the board 'Tinkerboard' from the Armbian building script CUI menu, the output ko files were all built for 4.4. How can I create 4.19 ko files for Tinkerboard? I tried to put userpatches/lib.config in order to overwrite KERNELBRANCH with tag:v4.19.y but not luck. The error was shown below: [ o.k. ] Using config file [ /vagrant/userpatches/config-example.conf ] [ o.k. ] Preparing [ host ] [ o.k. ] Build host OS release [ bionic ] [ o.k. ] Syncing clock [ host ] [ o.k. ] Checking for external GCC compilers (snip) grep: Makefile: No such file or directory sed: can't read Makefile: No such file or directory grep: /home/ubuntu/armbian/cache/sources/linux-rockchip/v4.19.y/Makefile: No such file or directory grep: /home/ubuntu/armbian/cache/sources/linux-rockchip/v4.19.y/Makefile: No such file or directory grep: /home/ubuntu/armbian/cache/sources/linux-rockchip/v4.19.y/Makefile: No such file or directory grep: /home/ubuntu/armbian/cache/sources/linux-rockchip/v4.19.y/Makefile: No such file or directory [ .... ] Compressing sources for the linux-source package 570KiB [ 264MiB/s] [======================================================================================> ] 77% cp: cannot stat 'COPYING': No such file or directory [ o.k. ] Compiling default kernel [ 0 ] [ o.k. ] Compiler version [ arm-linux-gnueabihf-gcc 7.4.1 ] [ o.k. ] Using kernel config file [ config/kernel/linux-rockchip-default.config ] make: *** No rule to make target 'oldconfig'. Stop. make: *** No rule to make target 'menuconfig'. Stop. [ o.k. ] Exporting new kernel config [ /home/ubuntu/armbian/output/config/linux-rockchip-default.config ] [ error ] ERROR in function compile_kernel [ compilation.sh:382 ] [ error ] Kernel was not built [ @host ] [ o.k. ] Process terminated Any suggestions/helps are appreciated. Thanks.
×
×
  • Create New...