Hey folks,
I'm trying to build the Chomium OS for some rather old Pentium M laptops and, once that is working, I want to add the Chrome OS Bluetooth extensions so that I can run my Jade Support Chrome App (https://chrome.google.com/webstore/detail/jade-support/gchcbahadlpkgkpenlkfgdgkdjedepod?hl=en) on the system (they have WinXP on them right now which is deadly slow).
I'm following the instructions outlined in http://www.chromium.org/chromium-os/developer-guide - I am able to get a USB Thumb Drive loaded with the image and it fails on the missing PAE flag (although the hardware is there) in the Pentium M.
To start off, I want to ignore the PAE flag (since I know which systems I'll be running) but no joy on seeing the changes in the build. I tried doing two builds, one with my changes and the other with a changed error message and in both cases, nothing comes up differently from the system boot from the original build.
I modified:
cpu.c - with the different error message for "This kernel requires the following features"...
cpucheck.c - with the commented out error operation for PAE
in
chromiumos/src/third_party/kernel/v3.18/arch/x86/boot
Following the process (everything including chroot was set up so I thought I could just do the board setup, build and image the USB key):
Step 1: sudo rm -rf /build/x86-generic
Step 2; ./setup_board --board=${BOARD}
Step 3: ./set_shared_user_password.sh
Step 4: ./build_packages --board=${BOARD}
Step 5: ./build_image --board=${BOARD} --noenable-rootfs_verification dev
Step 6: cros flash usb:// ${BOARD}/latest
BOARD was set to x86-generic
So, am I modifying the correct sources? If I am, why are my changes not being picked up in the build? I can open the cpu.c and cpucheck.c files in KWrite before and after (I changed the write permissions before making the code updates) and can see the changes.
What is the (re)build process that I should be using? Can I reduce it to steps 4 to 6 or should it be steps 5 to 6?
Thanx and sorry for all the questions,
myke
Hi Bill,Thanx for the pointers and reply.ctrl-C did not work, I'm not sure what you mean by "escalate". The only thing I could do was to close the terminal.
Question: Looking over the discussions, it notes that cros_sdk --bootstrap will build from "source". Is this the source on my system and should I start with this for my experimentation with eliminating the PAE error and doing the force?
repo init -u https://chromium.googlesource.com/chromiumos/manifest.git \repo synccros_sdk./setup_board --board $BOARD
./build_packages --board $BOARD./build_image --board $BOARD test
cros_workon-$BOARD start vboot_reference
emerge-$BOARD vboot_reference
Hi Bill,
Thanx for the follow up – I did kill the terminal process as you suggested (“-9”). I wasn’t sure how to see where it was failing after doing that.
The approach that you are listing matches the approach provided by the document, but I’m still wondering how I change the initial image to modify the cpu.c and cpucheck.c programs which check and flag the missing PAE.
What I proposed (and where I got stuck on) was:
After checking the default build, I continued with the following steps:
1. cros_workon --board=x86-generic start chromeos-kernel-3_18 (as suggested)
2. repo sync (basically following the steps outlined in http://www.chromium.org/chromium-os/developer-guide
3. cros_workon info --board=x86-generic -all to get the directory names (which matched the ones in the document).
3.1. I was expecting to see the 3.18 kernel files from src/third_party/kernel/v3.18 show up there but they didn't.
4. repo start chromeOS-myke to make a branch
5. I then made some changes to the message displayed by cpu.h in the original chromium/src/third_party/kernel/v3.18/arch/x86/boot folder noted below.
6. cros_workon_make --board=x86-generic chromeos-kernel-3_18
7. Not knowing what to do next, I decided to go back and build the USB image again: ./build_image --board=x87-generic --noenable_rootfs_verification dev
8. Go back and cros flash usb:// ${BOARD}/latest to make the USB image
Will this process give me a new image that I can modify the PAE testing so I can boot and then continue with my ultimate goal? The ultimate goal is to add the ChromeOS Bluetooth Extension code so I can run Bluetooth Chrome Apps from Chromium (minus the BLE features which aren’t currently available in Bluez) – once I have the basic image working, I should be able to develop, test and debug the Bluetooth Extensions without any issues.
Correct?
Thanx,
myke
From: wfri...@google.com [mailto:wfri...@google.com] On Behalf Of Bill Richardson
Sent: Monday, September 21, 2015 2:28 PM
To: Myke Predko <myke....@mimetics.ca>
Cc: Chromium OS dev <chromiu...@chromium.org>; Gwendal Grignou <gwe...@chromium.org>
Subject: Re: [cros-dev] Re: ChromiumOS Build Process/Not getting anywhere
On Mon, Sep 21, 2015 at 11:02 AM, Myke Predko <myke....@mimetics.ca> wrote:
rootdev -s
1. cros_workon --board=x86-generic start chromeos-kernel-3_18 (as suggested)
2. repo sync (basically following the steps outlined in http://www.chromium.org/chromium-os/developer-guide
3. repo start chromeOS-myke to make a branch
4. Make some changes to the source. For the first build, I changed the message displayed by cpu.h in the original chromium/src/third_party/kernel/v3.18/arch/x86/boot folder noted below.
5. cros_workon_make --board=x86-generic chromeos-kernel-3_18
6. Not knowing what to do next, I decided to go back and build the USB image again: ./build_image --board=x87-generic --noenable_rootfs_verification dev
7. Go back and cros flash usb:// ${BOARD}/latest to make the USB image
Hey folks,
I'm trying to build the Chomium OS for some rather old Pentium M laptops and, once that is working, I want to add the Chrome OS Bluetooth extensions so that I can run my Jade Support Chrome App (https://chrome.google.com/webstore/detail/jade-support/gchcbahadlpkgkpenlkfgdgkdjedepod?hl=en) on the system (they have WinXP on them right now which is deadly slow).
which matches the USE flag in the make.conf for that board.[binary N ] sys-kernel/chromeos-kernel-3_14-3.14-r1252::chromiumos
--
Hi Yuly,I'm using the build image command:./build_image --board=x86-generic --noenable_rootfs_verification devDoes the "dev" option at the end specify where things are coming from? I will try the image build with "test" instead of "dev'.
I have done thecros_workon_make --board=x86-generic start chromeos-kernel-3_18command and before the last build test I ran it again. The instance above was copied from the terminal command log.
The dump of the cros_workon and ./build commands is attached. In it, I could not find the sys-kernel/chromeos-kernel-3_18-9999::chromiumos string anywhere in the dump.
Where else should I be looking?myke
On Thursday, September 17, 2015 at 2:59:27 PM UTC-4, Myke Predko wrote:Hey folks,
I'm trying to build the Chomium OS for some rather old Pentium M laptops and, once that is working, I want to add the Chrome OS Bluetooth extensions so that I can run my Jade Support Chrome App (https://chrome.google.com/webstore/detail/jade-support/gchcbahadlpkgkpenlkfgdgkdjedepod?hl=en) on the system (they have WinXP on them right now which is deadly slow).
I'm following the instructions outlined in http://www.chromium.org/chromium-os/developer-guide - I am able to get a USB Thumb Drive loaded with the image and it fails on the missing PAE flag (although the hardware is there) in the Pentium M.
To start off, I want to ignore the PAE flag (since I know which systems I'll be running) but no joy on seeing the changes in the build. I tried doing two builds, one with my changes and the other with a changed error message and in both cases, nothing comes up differently from the system boot from the original build.
I modified:
cpu.c - with the different error message for "This kernel requires the following features"...
cpucheck.c - with the commented out error operation for PAE
in
chromiumos/src/third_party/kernel/v3.18/arch/x86/boot
Following the process (everything including chroot was set up so I thought I could just do the board setup, build and image the USB key):
Step 1: sudo rm -rf /build/x86-generic
Step 2; ./setup_board --board=${BOARD}
Step 3: ./set_shared_user_password.sh
Step 4: ./build_packages --board=${BOARD}
Step 5: ./build_image --board=${BOARD} --noenable-rootfs_verification dev
Step 6: cros flash usb:// ${BOARD}/latest
BOARD was set to x86-generic
So, am I modifying the correct sources? If I am, why are my changes not being picked up in the build? I can open the cpu.c and cpucheck.c files in KWrite before and after (I changed the write permissions before making the code updates) and can see the changes.
What is the (re)build process that I should be using? Can I reduce it to steps 4 to 6 or should it be steps 5 to 6?
Thanx and sorry for all the questions,
myke
--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
Thanx Yuly and Chirantan,Attached is the make.conf file I'm using with the build.Thanx for the explanation of "test" over "dev". I will use "test" until I have the final project working.Should I go back through the process outlined in http://www.chromium.org/chromium-os/developer-guide starting atInitialize the build for a board with the command:
./setup_board --board=x86-generic --force
and continue from there?
Hi Yuly,
I appreciate the list but I have a couple of questions:
What does the “emerge” command do?
Also, as I’m cut and pasting commands from my list, I’m not worrying about the BOARD variable (just putting in “x86-generic”) – is this a problem?
Thanx,
myke
From: ynov...@google.com [mailto:ynov...@google.com] On Behalf Of Yuly Novikov
Sent: Tuesday, September 22, 2015 6:40 PM
To: Myke Predko <myke....@mimetics.ca>
Cc: Chromium OS dev <chromiu...@chromium.org>
Subject: Re: [cros-dev] Re: ChromiumOS Build Process/Not getting anywhere
On Tue, Sep 22, 2015 at 6:22 PM, Myke Predko <myke....@mimetics.ca> wrote:
Hi Yuly,
I appreciate the list but I have a couple of questions:
What does the “emerge” command do?
Also, as I’m cut and pasting commands from my list, I’m not worrying about the BOARD variable (just putting in “x86-generic”) – is this a problem?
Sorry, no luck. I followed the process below but the same kernel executed (my message changes were not picked up).Could you look at the emerge dump file (attached) and look at the following error:[blocks B ] sys-kernel/chromeos-kernel-3_18 ("sys-kernel/chromeos-kernel-3_18" is blocking virtual/linux-sources-1-r10)* Error: The above package list contains packages which cannot be* installed at the same time on the same system.Could this be explaining why my code isn't being picked up? Any other ideas?
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
Hey James,Thanx for the question - I'm just going through the process (http://www.chromium.org/chromium-os/developer-guide) again from the start (rm'ing the chromiumos folder and restarting the PC).
For more information about Blocked Packages, please refer to the following section of the Gentoo Linux x86 Handbook (architecture is irrelevant): http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked
I'm doing the "repo sync" right now.Going through the process, it looks like I didn't execute "Making sudo a little more permissive" but I'm going through everything else.What are you looking for from the two commands?myke
On Wednesday, September 23, 2015 at 11:25:54 AM UTC-4, James Ausmus wrote:On Tue, Sep 22, 2015 at 8:57 PM, Myke Predko <myke....@mimetics.ca> wrote:Sorry, no luck. I followed the process below but the same kernel executed (my message changes were not picked up).Could you look at the emerge dump file (attached) and look at the following error:[blocks B ] sys-kernel/chromeos-kernel-3_18 ("sys-kernel/chromeos-kernel-3_18" is blocking virtual/linux-sources-1-r10)
Thanx for the replies. I decided to go back to the start because I have found in the past that when you are trying to figure out a build, it doesn't hurt to start from the beginning with everything documented.The good news is, it looks like the package build is finally going in the right direction, the bad news is the build is generating collisions.If you look at the attached files:- 2015.09.23 - Build Process from (almost) Zero- This is the process that I have been following today- 2015.09.23 - 17.27 - build_packages dump- This is the dump of the end of the ./build_packages command (where I stopped).How do I figure out where the collisions are happening and how do I deal with them?If I go to line 69 in the build_packages dump file, it seems that there are a number of radeon files which are in collision. I've done some research, but I can't figure out what is the correct approach on this.How do I deal with this issue?
--
As I do the setup_build, I got the message:emerge: there are no ebuilds to satisfy "virtual/target-os" for /mnt/host/source/src/build/images/x86-generic/R47-7485.0.2015_09_24_1459-a1/rootfs/.emerge: searching for similar names... nothing similar found.INFO : Unmounting image from /mnt/host/source/src/build/images/x86-generic/R47-7485.0.2015_09_24_1459-a1/stateful and /mnt/host/source/src/build/images/x86-generic/R47-7485.0.2015_09_24_1459-a1/rootfsCleaning up /usr/local symlinks for /mnt/host/source/src/build/images/x86-generic/R47-7485.0.2015_09_24_1459-a1/stateful/dev_imageAn error occurred in your build so your latest output directory is invalid.Would you like to delete the output directory (y/N)?I said yes...And it looks like everything ends here.
I'm going to retry with the process:
./setup_board --board=x86-generic --forceemerge-x86-generic chromeos-kernel-3_18
cros flash usb:// x86-generic/latest
Let's see what happensmyke
On Thursday, September 24, 2015 at 2:54:36 PM UTC-4, Myke Predko wrote:Hi Yuly,I've changed the message in the cpu.c source file so I can see if the build happens. I'm running the "emerg-x86-generic chromeos-kernel-3_18" command right now. Afterwards, I'll do "./build_image --board=x86-generic --noenable_rootfs_verification test" followed by "cros flash usb:// x86-generic/latest".Should I have redone the "./setup_board --board=x86-gereric --force" before doing that? This command was executed before when I was reloading everything.
Sigh. Well, it started well but ended up getting the radeon files conflict.
--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
Hi Luigi,If I'm reading you right, I can eliminate Steps 3. & 4. by using "update_kernel.sh"?myke
On Thursday, September 24, 2015 at 8:47:53 PM UTC-4, Luigi Semenzato wrote:A. You don't need step 3. Emerge the kernel (or any package), then
rebuild and flash the image.
B. If you already have a running ChromiumOs test image, you can use
src/scripts/update_kernel.sh after the emerge, without rebuilding the
image etc.
On Thu, Sep 24, 2015 at 5:42 PM, Myke Predko <myke....@mimetics.ca> wrote:
> Woo hoo!
>
> The message changes I put into the source showed up on the target machine
> from the USB thumb drive.
>
> Now, when I make changes at this level, do I have to go through the full
> process of:
> Step 1: ./setup_board --board=x86-generic --force
> Step 2: emerge-x86-generic chromeos-kernel-3_18
> Step 3: ./build_packages --board=x86-generic
> Step 4: ./build_image --board=x86-generic --noenable_rootfs_verification
> test
> Step 5: cros flash usb:// x86-generic/latest
On Thu, Sep 24, 2015 at 8:52 PM, Myke Predko <myke....@mimetics.ca> wrote:Hi Luigi,If I'm reading you right, I can eliminate Steps 3. & 4. by using "update_kernel.sh"?myke
On Thursday, September 24, 2015 at 8:47:53 PM UTC-4, Luigi Semenzato wrote:A. You don't need step 3. Emerge the kernel (or any package), then
rebuild and flash the image.
B. If you already have a running ChromiumOs test image, you can use
src/scripts/update_kernel.sh after the emerge, without rebuilding the
image etc.
On Thu, Sep 24, 2015 at 5:42 PM, Myke Predko <myke....@mimetics.ca> wrote:
> Woo hoo!
>
> The message changes I put into the source showed up on the target machine
> from the USB thumb drive.Congrats!>
> Now, when I make changes at this level, do I have to go through the full
> process of:
> Step 1: ./setup_board --board=x86-generic --force
> Step 2: emerge-x86-generic chromeos-kernel-3_18
> Step 3: ./build_packages --board=x86-generic
> Step 4: ./build_image --board=x86-generic --noenable_rootfs_verification
> test
> Step 5: cros flash usb:// x86-generic/latest
When you just want to modify kernel source files, you need just to (assuming you alredy did "cros_workon-x86-generic start chromeos-kernel-3_18" at some point):
...