Took quite a bit of searching through the .dts and .dtsi files and there meanings to get something done. Also a change to one of these files leads to having to rebuild the whole bunch, so a day goes by quickly. On the lichee nano the kernel now uses uart1 as its default ttyS0 and uart0 is disabled. Unfortunately this does not affect u-boot. This part still uses uart0. Have to test this build on the scope to see what happens.
If it works on the scope I will post the steps I took to get it done.
It works
, but too bad the display does not. The back-light did not turn on. At least linux is running. I can login (root/root) do cd.. and ls to see the directory list.
What I did:
I setup a virtualbox with linux mint 20.
Followed the instruction here: "
https://hackaday.io/project/171402/instructions" down to building the sunxi tools. (Used sunxi-fel version to see what the scope returned)
After that I used the instructions here: "
https://www.thirtythreeforty.net/posts/2020/01/mastering-embedded-linux-part-3-buildroot/" to setup buildroot (used the latest date 2021.2) and tested it with the raspberry pi config
Then I followed te instructions here: "
https://unframework.com/2020/05/27/setting-up-embedded-linux-on-lichee-pi-nano/" to build the linux with uart0 for the lichee nano
Had to resolve some errors due to missing packages. "sudo apt-get install swig python-dev libssl-dev" Also needed to change the defconfig to overcome legacy options.
Then to get uart1 in the picture I had to make modifications to some .dts and .dtsi files. The latter is found in several places and concerns these suniv-f1c100s.dtsi or suniv.dtsi. Not sure editing which did the trick.
I moved the files from unframework into the buildroot directory and modified them to work from there.
In the zip are the files I changed.
Place the board/licheepi_nano directory in the buildroot board directory (only the licheepi_nano directory ofcoarse)
Place the configs/licheepi_nano_defconfig in the buildroot configs directory (only the file)
Search for the other two files and replace them everywhere you find them. ( suniv-f1c100s.dtsi of suniv.dtsi)
Type in terminal in buildroot directory
make licheepi_nano_defconfig
make
This will make the needed image for the sd card.
With "sudo dd if=~/buildroot/output/images/sdcard.img of=/dev/sdb" I wrote it to my card and placed it in the scope.
Used a breakout board to connect the usb serial and putty on the linux mint machine et voila.