Can Someone help me compile a Kernel for my chromebook!

This forum is for discussion about general software issues.

Can Someone help me compile a Kernel for my chromebook!

Postby yaroze » Tue May 30, 2017 7:01 pm

I have a Asus Flip and it used to run arch OK but it has become useless recently, I tried the mainline Kernel and it was much more responsive but is only 2Gig Ram, which is odd as the machine has 4Gig of Ram.

Do I have compile my own version of with it set to 4Gigs?

Thanks
yaroze
 
Posts: 29
Joined: Sat Aug 27, 2016 10:43 pm

Re: Can Someone help me compile a Kernel for my chromebook!

Postby andre » Tue May 30, 2017 10:25 pm

If it boots up correctly I doubt it is a problem with the kernel itself. I suppose it's caused by an incorrect device tree passed to the kernel.
andre
 
Posts: 68
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: Can Someone help me compile a Kernel for my chromebook!

Postby yaroze » Wed May 31, 2017 7:58 pm

Where do I change the device tree?
yaroze
 
Posts: 29
Joined: Sat Aug 27, 2016 10:43 pm

Re: Can Someone help me compile a Kernel for my chromebook!

Postby andre » Sun Jun 04, 2017 2:42 pm

The device tree is passed to the kernel by the boot loader. Most ARM devices use U-boot at bootloader. Usually the u-boot configuration selects the correct device tree for the device. But it is possible to enter some commands to load a different device tree.
When the system boots, U-boot usually prompts a message like "Press any key to abort auto-boot..." (on some devices this is only visible on the serial console)
From there you can enter the "printenv" command to see its current settings, and adjust the boot commands, such as which device tree is being loaded. The enviorement should contain a variable fdt_file, which contains the filename of the device tree to load.

When using the mainline kernel, the device trees sit in /boot/dtbs/ The Asus Flip is based on the veyron board design. Looking at the device trees shipped with the mainline package, a number of trees come into consideration:

/boot/dtbs/rk3288-veyron-brain.dtb
/boot/dtbs/rk3288-veyron-jaq.dtb
/boot/dtbs/rk3288-veyron-jerry.dtb
/boot/dtbs/rk3288-veyron-mickey.dtb
/boot/dtbs/rk3288-veyron-minnie.dtb
/boot/dtbs/rk3288-veyron-pinky.dtb
/boot/dtbs/rk3288-veyron-speedy.dtb

See what file is being loaded by default. According to this http://elixir.free-electrons.com/linux/v4.7/source/Documentation/devicetree/bindings/arm/rockchip.txt the Asus Flip should be using the "minnie" file.
andre
 
Posts: 68
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: Can Someone help me compile a Kernel for my chromebook!

Postby andre » Sun Jun 04, 2017 6:16 pm

There is another topic going on about the same issue.

viewtopic.php?f=60&t=11705&p=56023#p56023

I have found the location in the device tree where the memory setting is made. I suppose changing the setting and compiling the tree would solve the problem. Perhaps it could be solved with a device tree overlay.
andre
 
Posts: 68
Joined: Wed Jan 25, 2012 1:39 pm
Location: Eindhoven

Re: Can Someone help me compile a Kernel for my chromebook!

Postby Asa001 » Sun Aug 13, 2017 9:32 am

:D I am happy that I find the answer here.
Asa001
 
Posts: 1
Joined: Sun Aug 13, 2017 9:29 am


Return to General

Who is online

Users browsing this forum: No registered users and 6 guests