f0cal / google-coral

Community gathering point for Google Coral dev board and dongle knowledge.
109 stars 14 forks source link

Pimping boot, background, loading #84

Closed laurentdebricon closed 4 years ago

laurentdebricon commented 4 years ago

Hello,

i am trying to pimp the google coral with my logo // color scheme, to sell it to a client. So far a script is launching at startup (thanks to https://github.com/google-coral/edgetpu/issues/120)

I am looking for solutions :

Best regards

Namburger commented 4 years ago

@laurentdebricon Hi :) In general, embeded linux such as the dev board doesn't have grub, we use something call u-boot. You can follow this answer to modify kernel command line:

Download boot.txt:

$ curl https://coral.googlesource.com/build/+/refs/heads/docker/boot.txt\?format\=TEXT | base64 --decode | tee boot.txt > /dev/null

Install mkimage:

$ sudo apt install u-boot-tools

Make your necessary changes in the cmdline="" line, for this example, we need to add "quiet loglevel=0":

cmdline=<preexsisting> + quiet loglevel=0

compile to boot.scr:

$ mkimage -A arm -T script -O linux -d boot.txt boot.scr

replace old boot image file

$ mv boot.scr > /boot

Reboot and the new kernel params should be loaded.

laurentdebricon commented 4 years ago

Thank you @Namburger ,

Namburger commented 4 years ago

@laurentdebricon ohh, you can change the background-image config in /etc/xdg/weston/weston.ini:

mendel@lime-rabbit:~/sdcard/testing$ cat /etc/xdg/weston/weston.ini 
[core]
gbm-format=argb8888
shell=desktop-shell.so
modules=systemd-notify.so
xwayland=true
idle-time=0

[shell]
background-image=/usr/share/weston/background.png
background-type=scale
allow-zap=false

[keyboard]
vt-switching=true

[output]
name=HDMI-A-1
mode=1920x1080