1 1
Staars

Proof of concept - Realtek 1295 (no board bring-up!!)

Recommended Posts

Hi,

 

after reading the very entertaining thread regarding the BPI-W2 and the following opening of the bsp-kernel on github, I became curious and when prices dropped for the Lake-1-TV-Box, I decided to play around with it.

 

Without very much documentation there was a bunch of trial and error and still many things are not absolutely clear to me, but finally I could boot an armbian build today:

 _          _          _ 
| |    __ _| | _____  / |
| |   / _` | |/ / _ \ | |
| |__| (_| |   <  __/ | |
|_____\__,_|_|\_\___| |_|
                         

Welcome to ARMBIAN 5.68 user-built Ubuntu 18.04.1 LTS 4.9.119-rtd1295   
System load:   1.49 0.74 0.31   Up time:       3 min
Memory usage:  4 % of 1631MB    IP:            
CPU temp:      46°C             
Usage of /:    11% of 7.2G      

[ General system configuration (beta): armbian-config ]

New to Armbian? Check the documentation first: https://docs.armbian.com


Thank you for choosing Armbian! Support: www.armbian.com

 

This is still connected over the serial port and completely untested. I had to use the strange chained double-u-boot and load kernel and dtb manually (from raw sd card sectors), so it is not even close to alpha. But it seems, that this can be improved. 

 

I plan to make a repeatable build config, but do not expect some really usable stuff anytime soon.  The situation with the lack of mainline support was already discussed in the other thread and the future does not look very bright here.

This is more or less a personal playground at the moment. But if anyone is interested, you can leave comments or questions here.

Share this post


Link to post
Share on other sites

Pretty interesting device! I see from the Internet it has an embedded SATA slot, RTC, 802.11ac wifi, HDMI IN and it has Mali-T860 GPU on a 4-core A53 design, where all other chinese propose outdated GPUs

Also the "legacy" kernel looks recent enough, which is nice to start with.

 

Congratulations and keep it up :thumbup:

 

edit:

bringing u-boot to boot is one of the most difficult tasks, I faced it when I had to deal with it and Chiptrip Q8 RK3288 (xt-q8l-v10) tv box because I had to use the vendor bootloader and chaining it to u-boot SPL which, in turn, boot the real u-boot.

Share this post


Link to post
Share on other sites

Just some additional infos:

 

Starting points were https://en.opensuse.org/HCL:Zidoo_X9S and the "new" repo from the bananapi side.

After soldering some wires directly to the PCB I tried to gain some info on the machine itself,  which has some sort of dual boot to android and a "rescue linux" with kernel 4.1.x.

The chained boot process was already described by afaerber and at least we can save the u-boot-environment on the device, which I only tested with the bootdelay so far, because I do not want to brick anything at the moment.

Then I played with the banana build system, which I am not used too. In parallel I created 2 repos with the kernel and u-boot in order to build it with the armbian build system and I could compile it rather soon. But I could not boot anything at that time.

 

After that came the trial-and-error part, which will continue for some time.

In short:

After trying out the awfully slow ymodem for kernel load, I ended in writing kernel and dtb to the start of a sd card and load it by hand in the "first" u-boot. I adapted the arminian build process to write both things to the image instead of the usual u-boot.

 

So things works like that:

1. Power-on with serial connected, interrupt  first u-boot with ESC.

2. Use the following commands:

sd read $kernel_loadaddr 800 954a
sd read $fdt_loadaddr a440 5d

fdt addr $fdt_loadaddr
fdt resize
b2ndbc

3. The last line continues the boot process, which must be interrupted again with a key press, then:

setenv bootargs earlycon=uart8250,mmio32,0x98007800 console=ttyS0,115200 noinitrd root=/dev/mmcblk0p1 rootfs=ext4  init=/sbin/init

bootr

 

That's basically all I know at the moment and the quest continues. If I do not brick/destroy the box (which could happen), I plan to upgrade the kernel repo to 4.9.150 and if this works out, I hope to find a way to create an easier boot process.

Share this post


Link to post
Share on other sites
Welcome to ARMBIAN 5.71 user-built Ubuntu 18.04.1 LTS 4.9.138-rtd1295   
System load:   1.15 1.02 0.73   Up time:       15 min   
Memory usage:  4 % of 1631MB    IP:            
CPU temp:      46°C             
Usage of /:    6% of 15G    

It is somehow patchable, to be continued ...

Share this post


Link to post
Share on other sites
 _          _          _ 
| |    __ _| | _____  / |
| |   / _` | |/ / _ \ | |
| |__| (_| |   <  __/ | |
|_____\__,_|_|\_\___| |_|
                         

Welcome to ARMBIAN 5.72 user-built Ubuntu 18.04.1 LTS 4.9.151-rtd1295   
System load:   2.25 1.47 0.79   Up time:       9 min
Memory usage:  5 % of 1631MB    IP:            192.168.0.102
CPU temp:      46°C             
Usage of /:    13% of 7.2G      


pi@lake1:~$ iwconfig
wlan1     IEEE 802.11  ESSID:"xxxxxxxxxx"  
          Mode:Managed  Frequency:2.412 GHz  Access Point: 80:EA:96:F1:84:7A   
          Bit Rate=72.2 Mb/s   Tx-Power=12 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=48/70  Signal level=-62 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

wlxa02c36ec6d34  IEEE 802.11  ESSID:off/any  
          Mode:Managed  Access Point: Not-Associated   Tx-Power=12 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          
pi@lake1:~$ 

 

Well,  brave little box ;) (yes, it is 4.9.151 now and integrated wifi)

 

But now comes the ugly part ... how to boot automatically?

 

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
1 1