Le jeu. 30 mars 2023 à 23:54, Brian Sammon <
[email protected]> a écrit :
I currently have a Lenovo Duet 5 chromebook (with ARM processor) that runs debian off an SD Card via USB.
The problem is that instead of a normal BIOS or UEFI, thelaptop has the nasty ChromeOS bootloader which refuses to boot the normal Debian ARM64 Netinst installer. The only thing it wants to boot from USB is the
ChromeOS recovery.
hexbuilder's VelvetOS (a (slightly?) modified version of Debian) builds
might boot from USB--that's what I'm using.
Check out https://github.com/hexdump0815/imagebuilder/blob/main/systems/chromebook_oak/readme.md
In theory, I could boot into ChromeOS from the eMMC, login as root and
copy Debian from the stick to the eMMC, but I don’t know how to
partition the eMMC. Where does the nasty bootloader expect to find
things? Can I make it boot into GRUB, or do I have to put the Linux
kernel from Debian onto a special partition? I’m completely clueless.
The process seems to be:
1) compress the kernel image with lz4
2) create a FIT image with mkimage
(mkimage is found in the "u-boot-tools" package in debian)
3) sign the FIT image and add the kernel commandline with vbutil_kernel
(vbutil_kernel is found in the "vboot-kernel-utils" package in debian)
4) dd the signed image to one of a "Kernel" partition
5) use cgpt to set the relevant flags that mark the chosen Kernel
partition as bootable/preferred.
(there's a "cgpt" package in debian)
The documentation for this (and the individual tools) is a bit suboptimal
and scattered, so I don't have any documentation pointers--I extracted this process from the build scripts for hexbuilder's VelvetOS images.
I haven't gotten to the point of understanding if/why all these steps are actually necessary, but I've used this process successfully to customize
the install and partition table on the SD card I'm using on my Chromebook.
I suspect that a similar process could be applied to the internal storage
of a Chromebook, but I haven't explored that yet.
Alper Nebi Yasak was working on making it easier to do all that in debian,
you might find interesting things at
https://salsa.debian.org/alpernebbi
I know depthcharge-tools is in debian and is working (i'm using it on c201 chromebooks).
However I don't know if it's possible to install debian the usual way right now.
I had luck with
https://github.com/SolidHal/PrawnOS - just to install a
base os, then I switched to debian sources.
Jérémy
<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 30 mars 2023 à 23:54, Brian Sammon <<a href="mailto:
[email protected]">
[email protected]</a>>
a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I currently have a Lenovo Duet 5 chromebook (with ARM processor) that runs debian off an SD Card via USB.<br>
> The problem is that instead of a normal BIOS or UEFI, thelaptop has the<br>
> nasty ChromeOS bootloader which refuses to boot the normal Debian ARM64<br>
> Netinst installer. The only thing it wants to boot from USB is the<br> > ChromeOS recovery.<br>
hexbuilder's VelvetOS (a (slightly?) modified version of Debian) builds might boot from USB--that's what I'm using.<br>
Check out <a href="
https://github.com/hexdump0815/imagebuilder/blob/main/systems/chromebook_oak/readme.md" rel="noreferrer" target="_blank">
https://github.com/hexdump0815/imagebuilder/blob/main/systems/chromebook_oak/readme.md</a><br>
> In theory, I could boot into ChromeOS from the eMMC, login as root and<br> > copy Debian from the stick to the eMMC, but I don’t know how to<br>
> partition the eMMC. Where does the nasty bootloader expect to find<br> > things? Can I make it boot into GRUB, or do I have to put the Linux<br> > kernel from Debian onto a special partition? I’m completely clueless.<br>
The process seems to be:<br>
1) compress the kernel image with lz4<br>
2) create a FIT image with mkimage<br>
(mkimage is found in the "u-boot-tools" package in debian)<br> 3) sign the FIT image and add the kernel commandline with vbutil_kernel<br>
(vbutil_kernel is found in the "vboot-kernel-utils" package in debian)<br>
4) dd the signed image to one of a "Kernel" partition<br>
5) use cgpt to set the relevant flags that mark the chosen Kernel<br>
partition as bootable/preferred.<br>
(there's a "cgpt" package in debian)<br>
The documentation for this (and the individual tools) is a bit suboptimal and scattered, so I don't have any documentation pointers--I extracted this process from the build scripts for hexbuilder's VelvetOS images.<br>
I haven't gotten to the point of understanding if/why all these steps are actually necessary, but I've used this process successfully to customize the install and partition table on the SD card I'm using on my Chromebook.<br>
I suspect that a similar process could be applied to the internal storage of a Chromebook, but I haven't explored that yet.<br></blockquote><div><br></div><div>Alper Nebi Yasak was working on making it easier to do all that in debian,</div><div>you
might find interesting things at <a href="
https://salsa.debian.org/alpernebbi">https://salsa.debian.org/alpernebbi</a></div><div>I know depthcharge-tools is in debian and is working (i'm using it on c201 chromebooks).</div><div>However I don't
know if it's possible to install debian the usual way right now.</div><div>I had luck with <a href="
https://github.com/SolidHal/PrawnOS">https://github.com/SolidHal/PrawnOS</a> - just to install a base os, then I switched to debian sources.</div><
<br></div><div>Jérémy</div></div></div>
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)