C201 Chromebook : boot sequence after kernel

New to Debian (Or Linux in general)? Ask your questions here!

Re: C201 Chromebook : boot sequence after kernel

Postby c201 » 2017-02-13 20:49

HDMI output doesn't work.

The 4.x kernel doesn't work - I am getting a white screen during boot with no further messages.
c201
 
Posts: 2
Joined: 2017-02-06 12:01

Re: C201 Chromebook : boot sequence after kernel

Postby logikarios » 2017-05-28 16:28

Is there any news on installing debian on the C201? After installing debian on the sd card and booting from it, I also get a blank screen. I've followed this guide. Can anyone help?
logikarios
 
Posts: 9
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-05-29 13:43

Hello everyone,

I have GOOD and BAD news regarding debian on the c201. The good news, it can be installed, and get to work. The bad news, we need to reconfigure Xorg without CONFIG_VT. Google has disabled CONFIG_VT in the kernel, in order to prevent the creation of consoles and the starting of Xorg from current stable.

There is a workaround in http://demo1.faikvm.com/trac/wiki/C201 but still no luck. But I think Im recompiling the wrong way.

I will try tonight https://www.x.org/wiki/Building_the_X_Window_System/ so I hope I can provide more helpful info.

PS. You can use ARCH in the meanwhile.
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-05-29 13:46

BTW I strongly recommend flashing c201 BIOS to LIBREBOOT.
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby logikarios » 2017-05-29 17:14

jguillen wrote:BTW I strongly recommend flashing c201 BIOS to LIBREBOOT.

Installing libreboot was a piece of cake compared to (trying) installing debian. Can you please expand on the part of
Xorg: Recompile x without config_vt, so that we work with the chrome-OS kernel.

of the workaround you mentioned?
logikarios
 
Posts: 9
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-05-31 07:54

logikarios wrote:Can you please expand on the part of
Xorg: Recompile x without config_vt, so that we work with the chrome-OS kernel.

of the workaround you mentioned?


We need to recompile Xorg 1.18.4 [1] applying a patch [2]. The problem im finding is that compiling Xorg via chroot is a pain, and cross-compiling, well I havent been succesfull yet. I contacted Ministry of Freedom, and they pointed me in this direction to install debian in c201.

When I get new info, I'll post it here. Arch, meanwhile, works ok, but not too efficiently.

[1] http://xorg.freedesktop.org/archive/individual/xserver/xorg-server-1.18.4.tar.gz
[2] http://demo1.faikvm.com/trac/wiki/C201
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-05-31 09:03

Ok, today I've managed to install debian, and access the terminal. I used the ARCH c100p kernel.

Now Im going to try to install MATE and see where I can get to.

UPDATE

Managed to install lightdm and mate, but no wifi so far, and some issues while trying to execute some commands.
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby logikarios » 2017-06-01 11:14

jguillen wrote:Ok, today I've managed to install debian, and access the terminal. I used the ARCH c100p kernel.

Can you explain how you made it? Which guide did you follow?

Also, can you install any (relevant) kernel you want? For instance, the one mentioned here? Would that be better?
logikarios
 
Posts: 9
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-06-05 09:00

logikarios wrote:Can you explain how you made it? Which guide did you follow?


I just followed Debian's guide, but modifying some steps. For example, in the debootstrap one, I installed stretch instead of jessie, as its going to be released soon:

Code: Select all
debootstrap --arch=armhf --foreign stretch ${MNT} http://http.debian.net/debian


Later, configured stretch repositories instead of jessie ones:

Code: Select all
cat > ${MNT}/etc/apt/sources.list <<EOF
deb http://http.debian.net/debian stretch main non-free contrib
deb-src http://http.debian.net/debian stretch main non-free contrib
EOF


Finnally, when we get to the kernel steps:

Code: Select all
wget http://os.archlinuxarm.org/os/ArchLinuxARM-veyron-latest.tar.gz
mkdir /tmp/c201
tar -xf ArchLinuxARM-veyron-latest.tar.gz -C /tmp/c201
dd if=/tmp/c201/boot/vmlinux.kpart of=/dev/mmcblk0p1


REMEMBER that this step you do it on your linux system, not in the c201, so mmcblk0p1 is the correct place. In the c201 should be mmcblk1p1 instead, but not sure if you can use dd

I also mounted mmcblk0p2 and copied vmlinuz to boot/vmlinuz. Then you continue using debian's tutorial in the "Mark the newly written kernel partition as good and set the priority" step.

Just remember, no wifi. Any question, hope I can help ;)

logikarios wrote:Also, can you install any (relevant) kernel you want? For instance, the one mentioned here? Would that be better?


Pretty interesting link, as the problem right now is recompiling Xorg, so Im going to read the code to see if we can manage a Debian script.

All distros use the "same" linux kernel, however all distros make slight changes to it in order make the kernel work best for them.
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby logikarios » 2017-06-05 20:58

jguillen wrote:
logikarios wrote:I just followed Debian's guide, but modifying some steps. For example, in the debootstrap one, I installed stretch instead of jessie, as its going to be released soon:
Code: Select all
debootstrap --arch=armhf --foreign stretch ${MNT} http://http.debian.net/debian

Later, configured stretch repositories instead of jessie ones:
Code: Select all
cat > ${MNT}/etc/apt/sources.list <<EOF
deb http://http.debian.net/debian stretch main non-free contrib
deb-src http://http.debian.net/debian stretch main non-free contrib
EOF

Finnally, when we get to the kernel steps:
Code: Select all
wget http://os.archlinuxarm.org/os/ArchLinuxARM-veyron-latest.tar.gz
mkdir /tmp/c201
tar -xf ArchLinuxARM-veyron-latest.tar.gz -C /tmp/c201
dd if=/tmp/c201/boot/vmlinux.kpart of=/dev/mmcblk0p1

REMEMBER that this step you do it on your linux system, not in the c201, so mmcblk0p1 is the correct place. In the c201 should be mmcblk1p1 instead, but not sure if you can use dd
I also mounted mmcblk0p2 and copied vmlinuz to boot/vmlinuz. Then you continue using debian's tutorial in the "Mark the newly written kernel partition as good and set the priority" step.
Just remember, no wifi. Any question, hope I can help ;)
logikarios wrote:Also, can you install any (relevant) kernel you want? For instance, the one mentioned here? Would that be better?

Pretty interesting link, as the problem right now is recompiling Xorg, so Im going to read the code to see if we can manage a Debian script.
All distros use the "same" linux kernel, however all distros make slight changes to it in order make the kernel work best for them.

Thank you so much! I just followed your advice and now I eventually managed to run Debian Stretch from my sd card! So, wifi is not working. How could I make it work? And then X would be good to run...

Note: If anyone tries that like I did, the memory card partition was /dev/mmcblk1 (0 is the chromebook's drive), so I had to put that and the rest worked flawlessly!
logikarios
 
Posts: 9
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-06-07 11:21

logikarios wrote:Thank you so much! I just followed your advice and now I eventually managed to run Debian Stretch from my sd card!

Great news!

logikarios wrote:So, wifi is not working. How could I make it work?

Wifi may need some tinkering, I didn't really worked on that, as I'm trying another approach recompiling Xorg.

logikarios wrote:And then X would be good to run...

You can install for example mate. As I didn't had Internet in the c201, I used chroot. In a Linux terminal:

Code: Select all
DEV=/dev/mmcblk0
MNT=/mnt
mkdir -p ${MNT}
mount ${DEV}p2 ${MNT}
chroot ${DEV} apt-get install mate-desktop-environment


Good luck!
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby logikarios » 2017-06-08 06:19

jguillen wrote:Wifi may need some tinkering, I didn't really worked on that, as I'm trying another approach recompiling Xorg.

I'm a bit confused with wifi. Does the kernel load all the modules? I saw that the ArchLinux distro where we get the kernel from has the (proprietary wifi) modules at
Code: Select all
/usr/lib/firmware

whereas Debian has them in
Code: Select all
/lib/firmware

Oddly enough,
Code: Select all
lsmod
returns nothing... Is that possible? May it be the case that this is the outcome of the loading a different kernel from the Debian one?
jguillen wrote:You can install for example mate. As I didn't had Internet in the c201, I used chroot. In a Linux terminal:

I wanted to install MATE anyway :D
I'll try that, thanks!
logikarios
 
Posts: 9
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-06-08 13:51

logikarios wrote:May it be the case that this is the outcome of the loading a different kernel from the Debian one?

Thats what I think, and the reason im trying to recompile xorg-server. Sadly I managed to apply the patch, but no luck yet. Mu next step is to compile a chromeos kernel which doesnt prevents the creation of consoles and the starting of Xorg from current stable. So we'll see what I can find out.

Just little steps, one at a time ;)
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

Postby logikarios » 2017-07-28 13:31

Guys, this might interest us all :D https://github.com/atopuzov/c201
It's a guide to install Debian Stretch with the mainline kernel on an SD card and run that on C201 Asus Chromebook!
logikarios
 
Posts: 9
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

Postby jguillen » 2017-08-01 18:48

logikarios wrote:Guys, this might interest us all :D https://github.com/atopuzov/c201
It's a guide to install Debian Stretch with the mainline kernel on an SD card and run that on C201 Asus Chromebook!


Anyone tried it out?
jguillen
 
Posts: 15
Joined: 2016-07-03 08:48

PreviousNext

Return to Beginners Questions

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable