ALARM on Samsung ARM Chromebook

Install Arch Linux ARM on other devices.

Re: ALARM on Samsung ARM Chromebook

Postby snija » Sat Mar 09, 2013 5:57 am

Perhaps you need to build your own kernel with new option like root=mmcblk0p3.
dutra wrote:I followed the steps from here http://craigerrington.com/blog/installi ... hromebook/

Then, I followed similar steps and zcat the tarball from the SD card into mmcblk0. When I try to boot into my system without a sd card, it boots but searches for the rootfs in mmcblk1p3 (sd card), and stops there. It only works if I also insert my sd card.

How can I change the rootfs variable and set it to mmcblk0p3?
snija
 
Posts: 13
Joined: Sat Mar 09, 2013 5:47 am

Re: ALARM on Samsung ARM Chromebook

Postby snija » Sat Mar 09, 2013 6:01 am

There's alignment requirement for the rootfs, does anyone knows the details?
I've a 32GB SD card, each time after i tried to change the partition size, it would not boot anyway.
snija
 
Posts: 13
Joined: Sat Mar 09, 2013 5:47 am

Re: ALARM on Samsung ARM Chromebook

Postby dutra » Sat Mar 09, 2013 7:50 am

snija wrote:Perhaps you need to build your own kernel with new option like root=mmcblk0p3.
dutra wrote:I followed the steps from here http://craigerrington.com/blog/installi ... hromebook/

Then, I followed similar steps and zcat the tarball from the SD card into mmcblk0. When I try to boot into my system without a sd card, it boots but searches for the rootfs in mmcblk1p3 (sd card), and stops there. It only works if I also insert my sd card.

How can I change the rootfs variable and set it to mmcblk0p3?


I see. Could you (or anyone else) please indicate me any material on building my own kernel for the Chromebook? All guides I have seen around are similar to the one I posted. It seems that relghuar was able to do exactly what I am looking for and he posted his partitions in a few replies ago, but he didn't explain how he built his kernel.
dutra
 
Posts: 15
Joined: Sat Dec 03, 2011 3:01 am

Re: ALARM on Samsung ARM Chromebook

Postby snija » Sat Mar 09, 2013 10:24 am

Check this, please.
http://blogs.arm.com/software-enablement/848-running-linux-on-the-series-3-chromebook/
dutra wrote:
snija wrote:Perhaps you need to build your own kernel with new option like root=mmcblk0p3.
dutra wrote:I followed the steps from here http://craigerrington.com/blog/installi ... hromebook/

Then, I followed similar steps and zcat the tarball from the SD card into mmcblk0. When I try to boot into my system without a sd card, it boots but searches for the rootfs in mmcblk1p3 (sd card), and stops there. It only works if I also insert my sd card.

How can I change the rootfs variable and set it to mmcblk0p3?


I see. Could you (or anyone else) please indicate me any material on building my own kernel for the Chromebook? All guides I have seen around are similar to the one I posted. It seems that relghuar was able to do exactly what I am looking for and he posted his partitions in a few replies ago, but he didn't explain how he built his kernel.
snija
 
Posts: 13
Joined: Sat Mar 09, 2013 5:47 am

Re: ALARM on Samsung ARM Chromebook

Postby tkjacobsen » Sat Mar 09, 2013 1:51 pm

snija wrote:There's alignment requirement for the rootfs, does anyone knows the details?
I've a 32GB SD card, each time after i tried to change the partition size, it would not boot anyway.


As I posted in this blog: http://craigerrington.com/blog/installi ... hromebook/ you have to mark the partitions as clean after resizing to be able to boot:

20. The last step is to mark the kernel partitions as known to be god so that the firmware will attempt to use them when you boot up. This marks both partitions as successful, and gives the first partition a priority of 10 and the second a priority of 5. Technically both creating a label and marking as successful aren’t needed but it is good practice.
cgpt add -i 1 -S 1 -T 5 -P 10 -l KERN-A /dev/mmcblk1
cgpt add -i 2 -S 1 -T 5 -P 5 -l KERN-B /dev/mmcblk1

http://blogs.arm.com/software-enablemen ... hromebook/
tkjacobsen
 
Posts: 1
Joined: Mon Jan 21, 2013 8:05 pm

Re: ALARM on Samsung ARM Chromebook

Postby snija » Sun Mar 10, 2013 6:04 am

Great & thanks a lot.
If i try to install it to emmc, should i do the similar things with cgpt?
tkjacobsen wrote:
snija wrote:There's alignment requirement for the rootfs, does anyone knows the details?
I've a 32GB SD card, each time after i tried to change the partition size, it would not boot anyway.


As I posted in this blog: http://craigerrington.com/blog/installi ... hromebook/ you have to mark the partitions as clean after resizing to be able to boot:

20. The last step is to mark the kernel partitions as known to be god so that the firmware will attempt to use them when you boot up. This marks both partitions as successful, and gives the first partition a priority of 10 and the second a priority of 5. Technically both creating a label and marking as successful aren’t needed but it is good practice.
cgpt add -i 1 -S 1 -T 5 -P 10 -l KERN-A /dev/mmcblk1
cgpt add -i 2 -S 1 -T 5 -P 5 -l KERN-B /dev/mmcblk1

http://blogs.arm.com/software-enablemen ... hromebook/
snija
 
Posts: 13
Joined: Sat Mar 09, 2013 5:47 am

Re: ALARM on Samsung ARM Chromebook

Postby stronnag » Sun Mar 10, 2013 8:44 am

snija wrote:Great & thanks a lot.
If i try to install it to emmc, should i do the similar things with cgpt?

If you're going to install to emmc, then consider installing nv-boot and the Arch linux-chromebook kernel --- it will make life easier in the future. You may wish to do this first on the SD card, then once you're confident with that, move to the emmc. Following relghuar's seminal post of 2013-02-13 will help immensely in this endeavour.
stronnag
 
Posts: 42
Joined: Sat Sep 22, 2012 6:51 am

Re: ALARM on Samsung ARM Chromebook

Postby jkirby » Sun Mar 10, 2013 6:34 pm

Is it possible that there is no NFS compiled in to the kernel?
jkirby
 
Posts: 12
Joined: Sat Feb 09, 2013 1:57 am

Re: ALARM on Samsung ARM Chromebook

Postby dutra » Sun Mar 10, 2013 7:19 pm

Thank you and snija for the help.I followed your instructions into my SD card and it is working great. However, a few questions: Can I use cgpt in my Archlinux machine instead of the chromebookOS? I am going to follow the instructions again from my sd card into the emmc, and I was wondering about how to run cgpt from the archlinux build.

tkjacobsen wrote:
snija wrote:There's alignment requirement for the rootfs, does anyone knows the details?
I've a 32GB SD card, each time after i tried to change the partition size, it would not boot anyway.


As I posted in this blog: http://craigerrington.com/blog/installi ... hromebook/ you have to mark the partitions as clean after resizing to be able to boot:

20. The last step is to mark the kernel partitions as known to be god so that the firmware will attempt to use them when you boot up. This marks both partitions as successful, and gives the first partition a priority of 10 and the second a priority of 5. Technically both creating a label and marking as successful aren’t needed but it is good practice.
cgpt add -i 1 -S 1 -T 5 -P 10 -l KERN-A /dev/mmcblk1
cgpt add -i 2 -S 1 -T 5 -P 5 -l KERN-B /dev/mmcblk1

http://blogs.arm.com/software-enablemen ... hromebook/
dutra
 
Posts: 15
Joined: Sat Dec 03, 2011 3:01 am

Re: ALARM on Samsung ARM Chromebook

Postby stronnag » Sun Mar 10, 2013 7:40 pm

dutra wrote:Can I use cgpt in my Archlinux machine instead of the chromebookOS? I am going to follow the instructions again from my sd card into the emmc, and I was wondering about how to run cgpt from the archlinux build.

Copy the cgpt binary from the chromeos partition to /usr/bin/ in arch. It's a static executable, there are no external dependencies, so it "just works".
stronnag
 
Posts: 42
Joined: Sat Sep 22, 2012 6:51 am

PreviousNext

Return to [Please read announcement] Community-Supported Devices

Who is online

Users browsing this forum: No registered users and 1 guest