Let me know if you like this! :)

Wow nice, thank you!
75%
12
Uhm, why would anyone use that?!
25%
4
 
Total votes: 16
c0d3z3r0
Posts: 23
Joined: Fri Jun 14, 2013 1:27 pm

rpi2strap - Debian armhf

Wed Feb 18, 2015 7:32 pm

Hey guys,

I wrote a Debian Jessie armhf installer for Raspberry Pi 2 yesterday.
Maybe you find it useful ;-)

https://github.com/c0d3z3r0/rpi2strap

gr33tz

bust
Posts: 72
Joined: Mon Mar 17, 2014 12:31 am

Re: rpi2strap - Debian armhf

Sun Feb 22, 2015 4:07 pm

Hi
Thank lot for your link and your work but he seem I have a error at end of the process ???

curl: (6) Could not resolve host: raw.githubusercontent.com
chmod: cannot access '/tmp/tmp.eVhqHY6c0i/root/usr/bin/rpi-update': No such file or directory
./rpi2strap.sh: line 51: /tmp/tmp.eVhqHY6c0i/root/usr/bin/rpi-update: No such file or directory
9696
215
umount: /dev/sdd: not mounted
umount: /dev/sdd: not mounted
umount: /dev/sdd1: not mounted
umount: /dev/sdd2: not mounted
OK, that's it. Plug in Network HDMI and keyboard, put the sdcard in your rpi2 and power it up.


On the sdcard I see the two partitions (fat16 and the ext4) but is unable to boot on rpi2
Regards

bust
Posts: 72
Joined: Mon Mar 17, 2014 12:31 am

Re: rpi2strap - Debian armhf

Sun Feb 22, 2015 4:56 pm

Hi
I have read the script and I have understand that this process could run only when it's realized on Raspbian system.
I have made on an other PPC machine ,I repeat later on the correct system ..
Regards

c0d3z3r0
Posts: 23
Joined: Fri Jun 14, 2013 1:27 pm

Re: rpi2strap - Debian armhf

Sun Feb 22, 2015 5:41 pm

What system are you using the script on?
You could run the script in raspbian but why? Put your sd card into a sd card reader and run the script on Debian.

curl: (6) Could not resolve host: raw.githubusercontent.com
It won't boot because the installer cannot download rpi-update which installs the firmware and bootloader.

These unmount "errors" are ok, just ignore them.

Could you try to install ca-certificates and try again, please?

linux34
Posts: 46
Joined: Sat Jul 21, 2012 9:00 am

Re: rpi2strap - Debian armhf

Sun Feb 22, 2015 9:59 pm

When we create the image and boot in RasPi2,

We see Tux logo in screen or Pi logo ?

Thanks.

c0d3z3r0
Posts: 23
Joined: Fri Jun 14, 2013 1:27 pm

Re: rpi2strap - Debian armhf

Sun Feb 22, 2015 10:06 pm

You'll see the Pi logo, because it's compile into the kernel.
When you use the mainline kernel there will be the tux logo.

bust
Posts: 72
Joined: Mon Mar 17, 2014 12:31 am

Re: rpi2strap - Debian armhf

Sun Feb 22, 2015 10:57 pm

Hi
Thank for your answers
(What system are you using the script on ?)
it's (Jessie Debian 8) on large server (IBM RS/6000) PPC machine
As it's I have to my hands i have made with,but ,before to read the script
that seem require (/boot) of Raspbian.
i will make later on one of raspberry that currently are all busy with compiler.
Regards.

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: rpi2strap - Debian armhf

Wed Feb 25, 2015 9:26 pm

I tried to use this, just for an experiment really, from raspbian wheezy on a pi-2. It failed because the debian-archive-keyring isn't installed - apt-get replaces it with raspbian-archive-keyring and I gave up rather than investigating how to install the signing key.

I also tried it form my mint linux laptop but it fails with "E: Unknown suite jessie", ditto from an ubuntu installation.

I think the notes should be amended to make it clear that it only works from a debian installation - maybe most people would realise this but I didn't. Also, the error handling is very poor - each time it indicated that it had completed successfully, although the preceding output made it clear it was not.

linux34
Posts: 46
Joined: Sat Jul 21, 2012 9:00 am

Re: rpi2strap - Debian armhf

Wed Feb 25, 2015 10:24 pm

Thanks for Jessie 8.0. But can you delete pi logo or change it.
And give link for download?

I will see Linux boot with debian logo :)

Thanks.

User avatar
AndyD
Posts: 2320
Joined: Sat Jan 21, 2012 8:13 am
Location: Melbourne, Australia
Contact: Website

Re: rpi2strap - Debian armhf

Wed Feb 25, 2015 11:19 pm

linux34 wrote:Thanks for Jessie 8.0. But can you delete pi logo or change it.
And give link for download?

I will see Linux boot with debian logo :)

Thanks.
The rpi2strap script is using the kernel from the Raspberry Pi foundation. If you want to change the kernel logo you will need to get the source, change the logo and build the kernel yourself.

orlo11
Posts: 1
Joined: Fri Feb 27, 2015 6:11 pm

Re: rpi2strap - Debian armhf

Fri Feb 27, 2015 7:14 pm

Hello,

I got the same on my two Debian Wheezy machines (notebook and desktop):
RobHenry wrote:
I also tried it form my mint linux laptop but it fails with "E: Unknown suite jessie", ditto from an ubuntu installation.
Then I tried to use the script to install Wheezy on the sd-card. The script was successfull but when I try to boot the raspi 2, I get a kernel panic as fast as I can't recognize, what happened before.
I use a hdmi-to-vga-adaptor and when the screen recognizes the signal everything is already over :(
Is the script to be run from a Jessie installation?

Thanks for answers,
orlo11.

mihau
Posts: 8
Joined: Mon Dec 17, 2012 3:30 pm

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 2:28 pm

As for error on Debian, I managed to fix them with adding -p at line 50 after mkdir command.
I was able to install it into card, but got kernel panic.

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 3:33 pm

mihau wrote:As for error on Debian, I managed to fix them with adding -p at line 50 after mkdir command.
I was able to install it into card, but got kernel panic.
Are you sure? Sounds odd to fix a problem by adding a switch somewhere else. Also the kernel panic indicates that maybe it didn't install properly. The poor error handling in the script can give the impression that it's been successful when it hasn't.

mihau
Posts: 8
Joined: Mon Dec 17, 2012 3:30 pm

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 4:17 pm

@RobHenry,
from mkdir man page:
-p, --parents
no error if existing, make parent directories as needed

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 4:25 pm

mihau wrote:@RobHenry,
from mkdir man page:
-p, --parents
no error if existing, make parent directories as needed
I know what the -p switch does, and am more than capable of looking up the man page if I didn't.

My point is that the error lies elsewhere. You've fixed a symptom, not the problem itself.

mihau
Posts: 8
Joined: Mon Dec 17, 2012 3:30 pm

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 5:02 pm

@RobHenry, without that switch the script would give dir / file not found errors, hence won't install any data. As kernel and other RPi stuff is from RPi themselves, the kernel panic wouldn't caused by the script.
Plus, I've stated that it might fix errors within the script.

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 5:16 pm

mihau wrote:@RobHenry, without that switch the script would give dir / file not found errors, hence won't install any data. As kernel and other RPi stuff is from RPi themselves, the kernel panic wouldn't caused by the script.
Plus, I've stated that it might fix errors within the script.
It gives dir not found error because a previous step has failed. cdebootstrap should've created and populated the directory structure but has failed. Creating the empty directory structure avoids a subsequent problem but does not address root cause. kernel panic is happening because the root file system doesn't exist.

Can you check the contents of the root partition to confirm this?

mihau
Posts: 8
Joined: Mon Dec 17, 2012 3:30 pm

Re: rpi2strap - Debian armhf

Sat Feb 28, 2015 5:35 pm

@RobHenry, I've already installed img file from here.
Tonight I won't be able to do more testing, but I might find some tomorrow.

Edit: Afair, 'root' was populated with files / folders.

ecvej
Posts: 6
Joined: Sun Mar 08, 2015 1:01 pm

Re: rpi2strap - Debian armhf

Sun Mar 08, 2015 2:47 pm

Thanks for the script which I found useful.

c0d3z3r0
Posts: 23
Joined: Fri Jun 14, 2013 1:27 pm

Re: rpi2strap - Debian armhf

Fri Apr 10, 2015 8:48 pm

Hey guys,

I haven't had time to answer.
I'll fix the bugs some time later when I have some spare time.
Feel free to fix it and open a pull request :-)

Best regards

linux34
Posts: 46
Joined: Sat Jul 21, 2012 9:00 am

Re: rpi2strap - Debian armhf

Sun Apr 12, 2015 12:19 pm

I need Jessie image, can any creat with rpi2'strap and give link plase ?

c0d3z3r0
Posts: 23
Joined: Fri Jun 14, 2013 1:27 pm

Re: rpi2strap - Debian armhf

Sun Apr 12, 2015 9:47 pm

Hi,

I've got good news for you ;-)
I did a complete rewrite of the installer in python with better error handling.
You can get the new version from the git repo.

RobHenry
Posts: 452
Joined: Fri Sep 21, 2012 9:04 pm
Location: UK

Re: rpi2strap - Debian armhf

Sun Apr 12, 2015 10:02 pm

c0d3z3r0 wrote:Hi,

I've got good news for you ;-)
I did a complete rewrite of the installer in python with better error handling.
You can get the new version from the git repo.
Looks promising! I'm away from home until the end of the week but will try it out and report back once I get a chance.

c0d3z3r0
Posts: 23
Joined: Fri Jun 14, 2013 1:27 pm

Re: rpi2strap - Debian armhf

Mon Apr 13, 2015 9:47 pm

... did some more optimizations ;-)
The installation is now completely taking place on the host system.

mshannon
Posts: 8
Joined: Thu Oct 17, 2013 4:14 pm

Re: rpi2strap - Debian armhf

Tue Apr 14, 2015 2:22 pm

I've tried this on a fat32 SD card on a usb card reader into jessie running on my RPI2.
I added all the software you listed that is required.
I ran "sudo python rpi2strap.py -h" and this tells my i must name the SD card SDX.
I ran "blkid" and this identified the SD card as sda5.
I ran "sudo python rpi2strap.py /dev/sda5" and it said it has to be "sdx".
So I ran "sudo python rpi2strap.py /dev/sda5" .

This ran OK with first and second phase and config but then the following error:

Configure the system.
Update the system.
Install rpi-update and raspi-config package.
Install kernel and modules.
Add cmdline.
Unmount and cleanup.
***********************************************
* Error! Please check the following messages! *
* Your system will NOT boot! *
***********************************************

/bin/sh: 1: fuser: not found

Exception ignored in: <finalize object at 0x76d07dc0; dead>
Traceback (most recent call last):
File "/usr/lib/python3.4/weakref.py", line 506, in __call__
return info.func(*info.args, **(info.kwargs or {}))
File "/usr/lib/python3.4/tempfile.py", line 813, in _cleanup
_rmtree(name)
File "/usr/lib/python3.4/shutil.py", line 463, in rmtree
_rmtree_safe_fd(fd, path, onerror)
File "/usr/lib/python3.4/shutil.py", line 405, in _rmtree_safe_fd
onerror(os.rmdir, fullname, sys.exc_info())
File "/usr/lib/python3.4/shutil.py", line 403, in _rmtree_safe_fd
os.rmdir(name, dir_fd=topfd)
OSError: [Errno 16] Device or resource busy: 'boot'
root@jessie-rpi:/home/pi#

It wrote to the SD card but this will not boot at all.

On puting my Jessie sd card back into my pi it had change that root password to "toor" but I could not run raspi-config as it could not find it.

How do I get this to work?

Thanks.

Return to “Debian”

Who is online

Users browsing this forum: No registered users and 3 guests