OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Boot from microSD?
oesf@kenny.cat
post Sep 26 2019, 06:04 AM
Post #1





Group: Members
Posts: 4
Joined: 26-September 19
Member No.: 856,256



Hi there,

I'm currently trying to make the Gemini boot Debian from a microSD card, however I cannot seem to be able to figure out how the initramfs chooses the root partition and where I would need to make changes to allow the device to boot from the microSD.
Does anyone have any pointers?

Thanks a lot!

Best,
kenny
Go to the top of the page
 
+Quote Post
Adam Boardman
post Sep 26 2019, 07:50 AM
Post #2





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



Assuming your wanting to boot the gemian from a microSD card then its actually all setup for that:

You either need to create a volume group named planetlinux or sailfishos on your microSD card*.

Then flash/dd linux-boot-lvm-gemian.img to one of your bootX partitions.

You then either need to have also unpacked a gemian system image to a gemian logical volume, or have the relevant config (after removing the to shrink volume name if you don't have sailfish on the same volume group) and system img on a usb stick that is plugged in on first boot, if the lv has no os-release file then it will attempt to create the gemian lv and install.

Kernel updates should create the relevant kernel image going forwards (assuming your using the patched lk), if not then you can always manually create a lvm-gemian image for the lvm setup on the device:

mkbootimg --kernel /usr/share/kernel/Image.gz-dtb --ramdisk /usr/share/kernel/initrd.img-gemini.cpio.gz --base 0x40080000 --second_offset 0x00e80000 --cmdline "bootopt=64S3,32N2,64N2 log_buf_len=4M root_lv=gemian" --kernel_offset 0x00000000 --ramdisk_offset 0x04f80000 --tags_offset 0x03f80000 --pagesize 2048 -o linux-boot-lvm-gemian.img
Go to the top of the page
 
+Quote Post
oesf@kenny.cat
post Sep 27 2019, 05:36 AM
Post #3





Group: Members
Posts: 4
Joined: 26-September 19
Member No.: 856,256



Thanks a lot! I have gotten it working.
Go to the top of the page
 
+Quote Post
oesf@kenny.cat
post Oct 1 2019, 02:03 AM
Post #4





Group: Members
Posts: 4
Joined: 26-September 19
Member No.: 856,256



QUOTE(Adam Boardman @ Sep 26 2019, 07:50 AM) *
Kernel updates should create the relevant kernel image going forwards (assuming your using the patched lk), if not then you can always manually create a lvm-gemian image for the lvm setup on the device:


Could you give me a pointer on how to install the patched lk? I've found two GitHub repositories but I've failed to successfully build them:

https://github.com/gemian/gemini-lk
https://github.com/sparklespdx/gemini-x27-lk-experimental
Go to the top of the page
 
+Quote Post
Adam Boardman
post Oct 1 2019, 04:15 AM
Post #5





Group: Members
Posts: 173
Joined: 29-December 17
Member No.: 815,489



https://github.com/gemian/gemian/wiki/Debia...-the-bootloader
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 7th December 2019 - 09:23 AM