public inbox for gentoo-soc@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
@ 2020-06-08  7:40 Ashwin Kumar
  2020-06-28 14:24 ` Benda Xu
  0 siblings, 1 reply; 10+ messages in thread
From: Ashwin Kumar @ 2020-06-08  7:40 UTC (permalink / raw
  To: gentoo-soc; +Cc: Brian Dolbec, Benda Xu

[-- Attachment #1: Type: text/plain, Size: 512 bytes --]

Hi, I built a toolchain for Chromium OS.

I tried building toolchain using gentoo’s crossdev but failed. So, I built
it using crosstool-ng as it was ready to use and quite easy to install and
setup.

Next, I will be setting it up on crOS which will now help portage compile
and build packages. Also, need to add necessary libraries that are missing
in toolchain and configure portage to use it.
My link to the blog : Link <https://zshzero.github.io/blog/gsoc/week1/>
-- 
- Cheers

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 742 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
@ 2020-06-16  1:11 Ashwin Kumar
  0 siblings, 0 replies; 10+ messages in thread
From: Ashwin Kumar @ 2020-06-16  1:11 UTC (permalink / raw
  To: gentoo-soc; +Cc: Brian Dolbec, Benda Xu

[-- Attachment #1: Type: text/plain, Size: 716 bytes --]

Hi everyone,

I remounted the partitions with read/write and execute option. Then
downloaded the toolchain repository, moved it to the right directory, set
the path and symlinked them to /usr/bin. Later, I configured portage to
pull from the gentoo repository, fetched the latest snapshot, setup
make.conf and ask it to compile and build the package. Also, I did manually
build some packages from sources that were necessary for portage.

I tried to update the profile but got struck in circular dependencies. So,
I am emerging those packages now. I was able to emerge sys-devel/binutils
but now struck with emerging sys-devel/gcc.

[1] Blog : https://zshzero.github.io/blog/gsoc/week2

-- 
- Cheers

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 942 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
@ 2020-06-22 10:11 Ashwin Kumar
  0 siblings, 0 replies; 10+ messages in thread
From: Ashwin Kumar @ 2020-06-22 10:11 UTC (permalink / raw
  To: gentoo-soc; +Cc: Brian Dolbec, Benda Xu

[-- Attachment #1: Type: text/plain, Size: 793 bytes --]

Hi everyone,

As gcc needed glibc version 2.29, I started emerging it with its
dependencies and also by adding required use flags. But it built a glibc
that doesn’t work and failed sanity checks. So, I changed the profile to
default/linux/amd64/17.1/desktop and added gcc, glibc to packages.provided
which overcame the problem of circular dependencies.

Then, It needed perl package, So I had to cross compile it using crossdev.
At last, I zipped the toolchain directory, copied to crOS and unzipped it.
But it failed as it had less space on its root partition. I referred a
script called chromeos-resize.sh and learnt things that was required. It
successfully extended the root partition.
[1] Blog : https://zshzero.github.io/blog/gsoc/week3
-- 
- Regards

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 1045 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-08  7:40 [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook Ashwin Kumar
@ 2020-06-28 14:24 ` Benda Xu
  2020-06-29  1:39   ` Ashwin Kumar
  0 siblings, 1 reply; 10+ messages in thread
From: Benda Xu @ 2020-06-28 14:24 UTC (permalink / raw
  To: Ashwin Kumar; +Cc: gentoo-soc

Hello Ashwin,

Ashwin Kumar <ashwinkumar3098@gmail.com> writes:

> Hi, I built a toolchain for Chromium OS.
>
> I tried building toolchain using gentoo’s crossdev but failed. So, I
> built it using crosstool-ng as it was ready to use and quite easy to
> install and setup.

Why do you need to cross compile a toolchain?  Can you untar a binary
Gentoo package to chromiumOS rootfs?

Benda

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-28 14:24 ` Benda Xu
@ 2020-06-29  1:39   ` Ashwin Kumar
  2020-07-01  7:02     ` Benda Xu
  0 siblings, 1 reply; 10+ messages in thread
From: Ashwin Kumar @ 2020-06-29  1:39 UTC (permalink / raw
  To: Benda Xu; +Cc: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Hi,

> Why do you need to cross compile a toolchain?
CrOS didn't have toolchain packages. SoI built it using crosstool-ng.

> Can you untar a binary Gentoo package to chromiumOS rootfs?
crosstool-ng provides you a output directory of toolchain and I have
untared it. (Crosstool-ng Docs
<https://crosstool-ng.github.io/docs/toolchain-usage/>)

On Sun, 28 Jun 2020 at 19:54, Benda Xu <heroxbd@gentoo.org> wrote:

> Hello Ashwin,
>
> Ashwin Kumar <ashwinkumar3098@gmail.com> writes:
>
> > Hi, I built a toolchain for Chromium OS.
> >
> > I tried building toolchain using gentoo’s crossdev but failed. So, I
> > built it using crosstool-ng as it was ready to use and quite easy to
> > install and setup.
>
> Why do you need to cross compile a toolchain?  Can you untar a binary
> Gentoo package to chromiumOS rootfs?
>
> Benda
>


-- 
- Regards

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 1523 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
@ 2020-06-29  8:40 Ashwin Kumar
  0 siblings, 0 replies; 10+ messages in thread
From: Ashwin Kumar @ 2020-06-29  8:40 UTC (permalink / raw
  To: gentoo-soc; +Cc: Brian Dolbec, Benda Xu

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Hi everyone,

After expanding the root partition, I moved the toolchain built using
crossdev to crOS and configured it. But crOS core packages are compiled
with older version of gcc and glibc which is holding back to compile new
packages using portage. So, I thought to upgrade it to using the
Upgrading_Gentoo guide. But again, It broke the core packages. I also tried
to install to /usr/local but the problem persisted.

So, next week, I will be trying to setup a prefix for crOS. I have brief
understanding of it, so i would be following the manual bootstrap
<https://wiki.gentoo.org/wiki/Project:Prefix/Manual_Bootstrap> process and
also setting it up stage wise would make debugging easy. As a prerequisite,
I should have a toolchain packages which i already have built using
crosstool-ng
-- 
- Regards

Ashwin A Kumar

[-- Attachment #2: Type: text/html, Size: 1023 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
  2020-06-29  1:39   ` Ashwin Kumar
@ 2020-07-01  7:02     ` Benda Xu
  2020-07-01  7:22       ` Ashwin Kumar
  0 siblings, 1 reply; 10+ messages in thread
From: Benda Xu @ 2020-07-01  7:02 UTC (permalink / raw
  To: Ashwin Kumar; +Cc: gentoo-soc

Hi Ashwin,

Ashwin Kumar <ashwinkumar3098@gmail.com> writes:

>> Can you untar a binary Gentoo package to chromiumOS rootfs?
> crosstool-ng provides you a output directory of toolchain and I have
> untared it. (Crosstool-ng Docs)

What prevents you from using Gentoo native toolchain binary package?
Why is crosstool necessary?

Yours,
Benda


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
  2020-07-01  7:02     ` Benda Xu
@ 2020-07-01  7:22       ` Ashwin Kumar
  2020-07-01  8:23         ` Benda Xu
  0 siblings, 1 reply; 10+ messages in thread
From: Ashwin Kumar @ 2020-07-01  7:22 UTC (permalink / raw
  To: Benda Xu; +Cc: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 796 bytes --]

Hi,

> What prevents you from using Gentoo native toolchain binary package?
When I tried to emerge binary package, crOS was missing make and patch
which again puts in circular dependencies.

> Why is crosstool necessary?
Crosstool-ng produces toolchain directory and can just be moved to crOS
(easier than building packages individually)

-- Cheers
Ashwin A Kumar

On Wed, 1 Jul 2020, 12:32 Benda Xu, <heroxbd@gentoo.org> wrote:

> Hi Ashwin,
>
> Ashwin Kumar <ashwinkumar3098@gmail.com> writes:
>
> >> Can you untar a binary Gentoo package to chromiumOS rootfs?
> > crosstool-ng provides you a output directory of toolchain and I have
> > untared it. (Crosstool-ng Docs)
>
> What prevents you from using Gentoo native toolchain binary package?
> Why is crosstool necessary?
>
> Yours,
> Benda
>

[-- Attachment #2: Type: text/html, Size: 1458 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
  2020-07-01  7:22       ` Ashwin Kumar
@ 2020-07-01  8:23         ` Benda Xu
  2020-07-01  8:46           ` Ashwin Kumar
  0 siblings, 1 reply; 10+ messages in thread
From: Benda Xu @ 2020-07-01  8:23 UTC (permalink / raw
  To: Ashwin Kumar; +Cc: gentoo-soc

Ashwin Kumar <ashwinkumar3098@gmail.com> writes:

>> What prevents you from using Gentoo native toolchain binary package?
> When I tried to emerge binary package, crOS was missing make and patch
> which again puts in circular dependencies.

No, Gentoo binary packages do not need make and patch.  Please study:

  https://wiki.gentoo.org/wiki/Binary_package_guide

>> Why is crosstool necessary?

> Crosstool-ng produces toolchain directory and can just be moved to
> crOS (easier than building packages individually)

Does the resulting cross toolchain work for you?

On CrOS we are building natively, why a cross toolchain is needed?

Benda


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook
  2020-07-01  8:23         ` Benda Xu
@ 2020-07-01  8:46           ` Ashwin Kumar
  0 siblings, 0 replies; 10+ messages in thread
From: Ashwin Kumar @ 2020-07-01  8:46 UTC (permalink / raw
  To: Benda Xu; +Cc: gentoo-soc

[-- Attachment #1: Type: text/plain, Size: 959 bytes --]

> Does the resulting cross toolchain work for you?
Yes, It is.

> On CrOS we are building natively, why a cross toolchain is needed?
I have just changed the vendor name. Architecture, OS and C Libraries are
the same

On Wed, 1 Jul 2020, 13:54 Benda Xu, <heroxbd@gentoo.org> wrote:

> Ashwin Kumar <ashwinkumar3098@gmail.com> writes:
>
> >> What prevents you from using Gentoo native toolchain binary package?
> > When I tried to emerge binary package, crOS was missing make and patch
> > which again puts in circular dependencies.
>
> No, Gentoo binary packages do not need make and patch.  Please study:
>
>   https://wiki.gentoo.org/wiki/Binary_package_guide
>
> >> Why is crosstool necessary?
>
> > Crosstool-ng produces toolchain directory and can just be moved to
> > crOS (easier than building packages individually)
>
> Does the resulting cross toolchain work for you?
>
> On CrOS we are building natively, why a cross toolchain is needed?
>
> Benda
>

[-- Attachment #2: Type: text/html, Size: 1889 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-07-01  8:46 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-08  7:40 [gentoo-soc] Weekly Report: Project - Standalone Gentoo Chromebook Ashwin Kumar
2020-06-28 14:24 ` Benda Xu
2020-06-29  1:39   ` Ashwin Kumar
2020-07-01  7:02     ` Benda Xu
2020-07-01  7:22       ` Ashwin Kumar
2020-07-01  8:23         ` Benda Xu
2020-07-01  8:46           ` Ashwin Kumar
  -- strict thread matches above, loose matches on Subject: below --
2020-06-16  1:11 Ashwin Kumar
2020-06-22 10:11 Ashwin Kumar
2020-06-29  8:40 Ashwin Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox