0
UniformBuffer

research Multiple Kernels at the same time

Recommended Posts

Hi,

i own a Libre Computer Le Potato (AML-S905X-CC) board and i would like to compile my own customized kernel to try patches for bug fixing and experimenting unstable "features", like lima driver.

The problem is that i currently use this board as daily driver and i would like the possibility to have a backup kernel (a stable one) in case something goes wrong.

So the question is: it is possible to have multiple installed kernel and decide which one boot (like GRUB behaviour) using the uboot bootloader?

If it is impossible, i'm sorry for the stupid question. I don't know how exactly the boot sequence works, from a low level point of view.

Thanks a lot for the attention and the dedicated time.

Share this post


Link to post
Share on other sites

not sure how you'd manage the .debs for it.. but as u-boot... its just pointing to a symlinks to the different active versions.. so you can just modify symlinks

 

lane@cranbone:/boot$ ls -l
total 37442
-rw-r--r-- 1 root root      166 Feb 19 14:13 armbianEnv.txt
-rw-r--r-- 1 root bin         0 Nov 20  2018 armbianEnv.txt.out
-rw-r--r-- 1 root root     1536 Nov 18  2018 armbian_first_run.txt.template
-rw-r--r-- 1 root root   230454 Nov 18  2018 boot.bmp
-rw-r--r-- 1 root root     2970 Nov 18  2018 boot.cmd
-rw-r--r-- 1 root root     4882 Nov 18  2018 boot-desktop.png
-rw-rw-r-- 1 root root     3042 Nov 18  2018 boot.scr
-rw-r--r-- 1 root root   168792 Dec 22 09:31 config-5.4.6-sunxi64
lrwxrwxrwx 1 root root       17 Dec 28 17:27 dtb -> dtb-5.4.6-sunxi64
drwxr-xr-x 2 root root     1024 Dec 28 17:06 dtb-5.3.9-sunxi64
drwxr-xr-x 3 root root     1024 Dec 28 17:06 dtb-5.4.6-sunxi64
lrwxrwxrwx 1 root root       17 Nov 23 19:03 dtb.old -> dtb-5.3.9-sunxi64
lrwxrwxrwx 1 root root       21 Dec 28 17:27 Image -> vmlinuz-5.4.6-sunxi64
-rw-r--r-- 1 root root  9418877 Feb 19 14:00 initrd.img-5.4.6-sunxi64
drwx------ 2 root root    12288 Nov 18  2018 lost+found
-rw-r--r-- 1 root root  3381515 Dec 22 09:31 System.map-5.4.6-sunxi64
lrwxrwxrwx 1 root root       21 Feb 19 14:01 uInitrd -> uInitrd-5.4.6-sunxi64
-rw-r--r-- 1 root root  9418941 Feb 19 14:01 uInitrd-5.4.6-sunxi64
-rwxr-xr-x 1 root root 15685640 Dec 22 09:31 vmlinuz-5.4.6-sunxi64

 

Share this post


Link to post
Share on other sites
4 hours ago, UniformBuffer said:

Hi,

i own a Libre Computer Le Potato (AML-S905X-CC) board and i would like to compile my own customized kernel to try patches for bug fixing and experimenting unstable "features", like lima driver.

 

We just pushed a few updates. you may want to download the latest lepotato image we posted today.

 

Spoiler

lane@lepotato:/sys/class/leds$ lsmod
Module                  Size  Used by
rtl8192cu              77824  0
rtl_usb                20480  1 rtl8192cu
rtl8192c_common        53248  1 rtl8192cu
rtlwifi                90112  3 rtl8192c_common,rtl_usb,rtl8192cu
mac80211              544768  3 rtl_usb,rtl8192cu,rtlwifi
cfg80211              405504  2 rtlwifi,mac80211
libarc4                16384  1 mac80211
rpcsec_gss_krb5        36864  0
fuse                  126976  3
rfkill                 32768  3 cfg80211
cpufreq_powersave      20480  0
cpufreq_conservative    16384  1
zstd                   16384  4
snd_soc_hdmi_codec     16384  1
dw_hdmi_i2s_audio      16384  0
snd_soc_meson_aiu_i2s_fifo    16384  1
snd_soc_meson_aiu_spdif_fifo    16384  0
snd_soc_meson_gx_sound_card    16384  0
snd_soc_meson_aiu_fifo    16384  2 snd_soc_meson_aiu_i2s_fifo,snd_soc_meson_aiu_spdif_fifo
snd_soc_meson_card_utils    16384  3 snd_soc_meson_gx_sound_card
snd_soc_meson_aiu_spdif_encode    16384  0
snd_soc_meson_aiu_i2s_encode    16384  1
meson_vdec             81920  0
snd_soc_core          208896  7 snd_soc_meson_aiu_spdif_encode,snd_soc_hdmi_codec,snd_soc_meson_aiu_i2s_fifo,snd_soc_meson_aiu_fifo,snd_soc_meson_aiu_spdif_fifo,snd_soc_meson_card_utils,snd_soc_meson_aiu_i2s_encode
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_pcm               122880  8 snd_soc_meson_aiu_spdif_encode,snd_soc_hdmi_codec,snd_soc_meson_aiu_i2s_fifo,snd_soc_meson_aiu_fifo,snd_soc_core,snd_soc_meson_aiu_spdif_fifo,snd_soc_meson_aiu_i2s_encode,snd_pcm_dmaengine
meson_dw_hdmi          24576  0
snd_timer              45056  1 snd_pcm
v4l2_mem2mem           32768  1 meson_vdec
meson_drm              57344  2 meson_dw_hdmi
dw_hdmi                45056  2 meson_dw_hdmi,dw_hdmi_i2s_audio
snd                    94208  8 snd_soc_hdmi_codec,snd_timer,snd_soc_core,snd_pcm
videobuf2_dma_contig    24576  1 meson_vdec
lima                   45056  1
drm_kms_helper        200704  6 meson_dw_hdmi,meson_drm,dw_hdmi
videobuf2_v4l2         32768  2 meson_vdec,v4l2_mem2mem
gpu_sched              28672  1 lima
videobuf2_memops       20480  1 videobuf2_dma_contig
soundcore              16384  1 snd
drm                   536576  8 gpu_sched,meson_dw_hdmi,meson_drm,drm_kms_helper,lima,dw_hdmi
ac97_bus               16384  1 snd_soc_core
videobuf2_common       61440  3 meson_vdec,videobuf2_v4l2,v4l2_mem2mem
videodev              258048  4 meson_vdec,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
drm_panel_orientation_quirks    20480  1 drm
mc                     61440  4 videodev,videobuf2_v4l2,videobuf2_common,v4l2_mem2mem
meson_rng              16384  0
meson_ir               16384  0
rng_core               16384  1 meson_rng
meson_canvas           16384  2 meson_drm,meson_vdec
ao_cec                 20480  0
snd_soc_meson_aiu_bus    16384  0
meson_gxbb_wdt         16384  0
scpi_hwmon             16384  0
zram                   36864  2
ip_tables              32768  0
x_tables               49152  1 ip_tables
meson_gxl              20480  1
dwmac_generic          16384  0
dwmac_meson8b          16384  0

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0