Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

C201 Chromebook : boot sequence after kernel

New to Debian (Or Linux in general)? Ask your questions here!
Message
Author
jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#41 Post by jguillen »

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!

logikarios
Posts: 10
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

#42 Post by logikarios »

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!

jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#43 Post by jguillen »

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 ;)

logikarios
Posts: 10
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

#44 Post by logikarios »

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!

jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#45 Post by jguillen »

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?

logikarios
Posts: 10
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

#46 Post by logikarios »

jguillen wrote:
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?
I will, as soon as I find time! Are you asking out of curiosity or you think it won't work?

jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#47 Post by jguillen »

logikarios wrote:
jguillen wrote:
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?
I will, as soon as I find time! Are you asking out of curiosity or you think it won't work?
I couldnt make it work. Got a white screen with either both kernel command lines he posted. Have opened an issue, so lets see if Aleksandar can help us a little more. Anyway, seems like there is a working Devuan image:

https://archive.org/details/devuan-jess ... -libre-2GB

logikarios
Posts: 10
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

#48 Post by logikarios »

jguillen wrote:Anyway, seems like there is a working Devuan image:https://archive.org/details/devuan-jess ... -libre-2GB
Yeah, this is the one I'm using and it's running better than the Arch Linux one. I haven't managed to load the proprietary drivers for the wifi yet though; I'm using an Atheros dongle instead.

jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#49 Post by jguillen »

logikarios wrote:
jguillen wrote:Anyway, seems like there is a working Devuan image:https://archive.org/details/devuan-jess ... -libre-2GB
Yeah, this is the one I'm using and it's running better than the Arch Linux one. I haven't managed to load the proprietary drivers for the wifi yet though; I'm using an Atheros dongle instead.
Have you managed to install a desktop environment and run it?

logikarios
Posts: 10
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

#50 Post by logikarios »

jguillen wrote:
logikarios wrote:
jguillen wrote:Anyway, seems like there is a working Devuan image:https://archive.org/details/devuan-jess ... -libre-2GB
Yeah, this is the one I'm using and it's running better than the Arch Linux one. I haven't managed to load the proprietary drivers for the wifi yet though; I'm using an Atheros dongle instead.
Have you managed to install a desktop environment and run it?
Yeah! X11 with lightDM and MATE. The same setup works far better in Devuan than in Arch Linux.

jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#51 Post by jguillen »

I've managed to compile chromeos kernel with all blobs, so lets see if I can install this kernel with a debian system

logikarios
Posts: 10
Joined: 2017-01-11 11:17

Re: C201 Chromebook : boot sequence after kernel

#52 Post by logikarios »

jguillen wrote:I've managed to compile chromeos kernel with all blobs, so lets see if I can install this kernel with a debian system
How did that go?

jguillen
Posts: 16
Joined: 2016-07-03 08:48

Re: C201 Chromebook : boot sequence after kernel

#53 Post by jguillen »

Hello everyone,

I finally managed to install linux in my Asus c201 with blobs working. Please, take note than I'm doing all my stuff directly on my asus c201 (using chrome OS), so you dont need any additional computer. We will install devuan to a SD card (/dev/mmcblk1 it may be different for you). These are the steps:

1) You need developer mode enabled [1]

2) (optional) install libreboot [2]

3) boot ChromeOS and access crosh. This can be done by pressing the Control, Alt and T keys simultaneously in Chromium browser. A new window will open showing a terminal-style prompt. Here it is necessary to type shell, followed by sudo -s. You should now have a root shell prompt.

4) download non-deblobbed devuan image [3]

Code: Select all

curl -O https://files.devuan.org/devuan_jessie/embedded/devuan_jessie_1.0.0_armhf_sunxi.img.xz
5) make sure sd card is not mounted

Code: Select all

umount /dev/mmcblk1*
6) we copy image to sd card using dd

Code: Select all

xzcat devuan_jessie_1.0.0_armhf_sunxi.img.xz | sudo dd of=/dev/mmcblk0 bs=2M
7) We mount root folder.

Code: Select all

mount /dev/mmcblk1p2 /mnt
8) We update sources

Code: Select all

chroot /mnt apt update
9) We download Xorg Display Server files

Code: Select all

chroot /mnt apt install -d --no-install-recommends xserver-xorg xinit

10) We download GUI packages (xfce4, lightdm)

Code: Select all

chroot /mnt apt install -d xfce4 xfce4-terminal lightdm
11) We download network management tools (wicd)

Code: Select all

chroot /mnt apt install -d wicd-daemon wicd-cli wicd-setup wicd-gtk
12) We restart OS and boot into SD card (Ctrl+U). use root/toor as credentials

13) We install Xorg Display Server

Code: Select all

chroot /mnt apt install --no-install-recommends xserver-xorg xinit
10) We install GUI packages (xfce4, lightdm)

Code: Select all

chroot /mnt apt install xfce4 xfce4-terminal lightdm
11) We install network management tools (wicd)

Code: Select all

chroot /mnt apt install wicd-daemon wicd-cli wicd-setup wicd-gtk
12) We reboot and start from SD again, just to check everything worked fine

Code: Select all

reboot
13) GUI should start, Enter root/toor credentials

14) To show wifi applet, from terminal

Code: Select all

wicd-client
15) To enable service automatically, from terminal

Code: Select all

update-rc.d wicd defaults
Happy playing ;)

[1] https://wiki.debian.org/InstallingDebia ... loper_Mode
[2] https://libreboot.org/docs/hardware/c201.html
[3] https://mirror.leaseweb.com/devuan/devu ... ron.img.xz

Post Reply