Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on ARM
  • Search

genBerry: a kind of stage4 for raspberry Pi

Gentoo on all things ARM. Both 32 bit and 64 bit.
Tell about your hardware and CHOST.
Problems with crossdev targeting ARM hardware go here too.
Post Reply
  • Print view
Advanced search
13 posts • Page 1 of 1
Author
Message
dervishe
n00b
n00b
User avatar
Posts: 11
Joined: Sun Apr 21, 2013 2:12 pm

genBerry: a kind of stage4 for raspberry Pi

  • Quote

Post by dervishe » Tue Jan 12, 2016 6:00 am

Hello,
playing with some raspberry Pi, i came to build a stage4 image (that i called genBerry) and some installation scripts for it. Those scripts will take care of all the part of the installation: sdcard partitioning, formatting and mounting, kernel building and new portage tree on a squashfs image. You can, of course, customize the installation with some options when you call the scripts.
The compress image size is approx 190MB. I had tested it against raspberry 1A, 1B, zero and 2B. All the archive retrieved during the installation are verified against the public key of their author.
Once installed, the system contains no swap, /tmp and /var/log are tmpfs FS.
genBerry is built on the official stage3 for raspberryPi.
I'll be more than happy and grateful if some are interested in testing / using it and make feedback.
The link is here: https://github.com/dervishe-/genBerry
Top
audiodef
Watchman
Watchman
User avatar
Posts: 6656
Joined: Wed Jul 06, 2005 1:02 pm
Location: The soundosphere
Contact:
Contact audiodef
Website

  • Quote

Post by audiodef » Tue Jan 12, 2016 2:44 pm

Very nice! I'll give this a try if I can find the time. :)
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56078
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Tue Jan 12, 2016 7:34 pm

/me checks in
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
dervishe
n00b
n00b
User avatar
Posts: 11
Joined: Sun Apr 21, 2013 2:12 pm

  • Quote

Post by dervishe » Wed Jan 13, 2016 11:53 am

thanks for your interest :)
Top
zhangyubaka
n00b
n00b
Posts: 11
Joined: Wed Mar 04, 2015 1:43 pm

  • Quote

Post by zhangyubaka » Thu Jan 14, 2016 9:11 pm

rpi2 wanted.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56078
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Thu Jan 14, 2016 10:32 pm

dervishe,

Well, I have a BINHOST for the arm6j Pi.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
dervishe
n00b
n00b
User avatar
Posts: 11
Joined: Sun Apr 21, 2013 2:12 pm

  • Quote

Post by dervishe » Fri Jan 15, 2016 1:39 am

@NeddySeagoon awesome, can i include your repository ? Did you have some kind of crypto signature to ensure users that the bin packages are genuine (i never used bin packages in gentoo then perhaps my request is not accurate)
Thanks for your work :D
@zhangyubaka actually, the current-stage3-armv6j_hardfp version just boot without problems for the rPi2 (i tested it) but some services are failing i'm working for a more complex script which will build the base images for current-stage3-armv6j_hardfp and current-stage3-armv7a_hardfp
Actually the todo list is:
* possibility to choose the locale
* export to an iso image
* select the partition scheme

I think all this will be available at the end of January (well it depends of my free time but i think, i can handle it)
Btw, i will be on FOSDEM this year and if some wants to talk about it, i will be happy to exchange ideas

Edit: reduce the todo list with the thing done
Last edited by dervishe on Mon Jan 18, 2016 5:30 am, edited 1 time in total.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56078
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Fri Jan 15, 2016 7:24 pm

dervishe,

None of that BINHOST is signed. Its just an scp of my Pis /usr/portage/packages.
Feel free to use or link to my BINHOST. If you use a link, it would be best if you linked to the level with the READme file.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
szatox
Advocate
Advocate
Posts: 3858
Joined: Tue Aug 27, 2013 12:35 pm

  • Quote

Post by szatox » Sat Jan 16, 2016 9:05 pm

I wonder... When I look at variables used by emerge, it's pretty obvious you can install cross-compiler, create a directory storing config files for emerge e.g.
$config/pi/etc/portage/make.conf
with CHOST set to the target architecture and then launch

Code: Select all

emerge --root="my_new_shiny_gentoo_for_TT" --config-root="$config/pi" list of packages you want to include in the target system"
So... Anyone tried that? I haven't (yet) but when I see how advanced and flexible emerge is, and considering there are stage3 tarballs for many architectures incompatible with each other, I really doubt someone is keeping 10 servers with different architectures just to build those.
And there must be an easier way than doing all this stuff manually.

Hmm... AFAIR there was one variable more that has to be set in make.cont when the build host doesn't match target host.
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56078
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Sat Jan 16, 2016 9:55 pm

szatox,

Pure cross compiling doesn't work by design for perl and python.
Its fine for all the things you need to port Linux to a new arch, after all, that's how ports are done.

Outside of that, its pretty hit and miss because build systems are not well tested in a cross compile environment.

In theory, you can use crossdev to get say an arm7a toolchain ... that works.
Set up /usr/armv7a-hardfloat-linux-gnueabi/etc/portage/make.conf for the target
Then do

Code: Select all

armv7a-hardfloat-linux-gnueabi-emerge @system
to build system from nothing.
In practice, you don't get very far.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
dervishe
n00b
n00b
User avatar
Posts: 11
Joined: Sun Apr 21, 2013 2:12 pm

  • Quote

Post by dervishe » Mon Jan 18, 2016 5:28 am

I've updated the image now, there's 2 archives one for armv6j and the second for armv7a. The armv6j comes with distcc and the NeddySeagoon binhost repository.
I added too the possibility to put the kernel sources on the sdcard.
@NeddySeagoon i have some trouble with including your repository at the README level (portage need the Packages file i thik) then i include in make.conf the address: http://grytpype-thynne.org/~roy/BINHOSTS/gcc-4.x/arm6j/
Top
NeddySeagoon
Administrator
Administrator
User avatar
Posts: 56078
Joined: Sat Jul 05, 2003 9:37 am
Location: 56N 3W

  • Quote

Post by NeddySeagoon » Mon Jan 18, 2016 7:08 pm

dervishe,

For make.conf, you need to link to the directory where the Packages file is.
It would be good to include a comment in the make.conf pointing at the Readme though.
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Top
dervishe
n00b
n00b
User avatar
Posts: 11
Joined: Sun Apr 21, 2013 2:12 pm

  • Quote

Post by dervishe » Mon Jan 18, 2016 7:33 pm

NeddySeagoon,
that's what i done (except for the comment but i will add it asap)
I will add an option for the users to choose if they want to include the repository or not. Actually, if you choose the ARMv6j, it is added automatically.
thanks
Top
Post Reply
  • Print view

13 posts • Page 1 of 1

Return to “Gentoo on ARM”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic