FransM post at 2015-3-31 03:53:47

FC22 alpha 3

Hi,

I just installed the FC22 alpha 3 Xfce image from:
http://download.fedoraproject.org/pub/fedora/linux/releases/test/22_Alpha/Images/armhfp/Fedora-Xfce-armhfp-22_Alpha-3-sda.raw.xz
I did not test the other images to be found under the ARM section of http://spins.fedoraproject.org/en/prerelease but I expect no issues for these either.
I used the script below to write the image to an SD card (minimal 4 GB).
invocation:
install_image /dev/sdX Fedora-Xfce-armhfp-22_Alpha-3-sda.raw.xz
where /dev/sdX is the name of the SD card.
The script will also set the root password to root
If there are issues feel free to drop a note in this thread.
Also if you have no problems, I appreciate a short message that things work for you.

Enjoy! Frans

#!/bin/bash
if [ $# -ne 2 ]
then
echo "Usage: $0 /dev/sdX imagename"
echo " replace your device letter with X (so e.g. /dev/sdd)"
echo " make sure this sd card is empty and not mounted!"
exit 1
fi

echo "About to write to $1"
echo "All data on this device will be lost!!!!"
echo "type \"yes\" (without the quotes) on the next line to continue"
echo "everything else will abort"
echo -n "Do you want to continue and loose all information on $1? "
read answer
if [ "$answer" != "yes" ]
then
echo "Aborting...."
exit 1
fi

echo "Writing the image. This will take some time"
xzcat $2 | dd of=$1 bs=4M

echo "Downloading done; finishing up"
mkdir tmp$$
partprobe $1
#fdisk $1 << EOF
#d
#3
#n
#p
#3
#
#7600000
#w
#q
#EOF
#partprobe $1
#e2fsck -f ${1}3
#resize2fs ${1}3
#partprobe $1
#sleep 10
#umount {1}1 2>/dev/null
#umount {1}3 2>/dev/null
mount ${1}3 tmp$$
dd if=tmp$$/usr/share/uboot/Bananapi/u-boot-sunxi-with-spl.bin of=${1} bs=1024 seek=8 conv=fsync,notrunc
sed -i "s/enforcing/disabled/" tmp$$/etc/selinux/config
sed -i "s/::/:$6$QJIBRZlj$K5msWRb0sqAdIDlnKgkyfpoSDgEblFb95vyTcFgCbBHqxQb9UDdVEPjaG69bAarff0nKAT2Rn3wDuNVkyPEmU0:/" tmp$$/etc/shadow
umount ${1}3
exit 0

P.I.Joe post at 2015-4-5 01:37:06

Sorry for asking. I dont have a Orange Pi yet. Why did u use this Script for flashing on sd-card? Isnt it possible with "dd" command?

FransM post at 2015-4-8 17:40:51

You can use dd tp write to the SD card but after that you also need to dd the u-boot image.
The FC image is platform independent and can be used on orange pi but also e.g. on pandaboard.
This uses the same kernel but requires a different way to boot.

To support these different platforms the right u-boot needs to be taken from the image and written to the sd card as well.
In the script this is done in the line:
dd if=tmp$$/usr/share/uboot/Bananapi/u-boot-sunxi-with-spl.bin of=${1} bs=1024 seek=8 conv=fsync,notrunc

And the standard FC image is for a 4GB card if I recall correctly.
There is also code in the script to make maximum use of the capacity of the SD card but that part (the fdisk section) is commented out

Generally I try to make things as simple as possible for the user

Drakoh post at 2015-10-12 03:16:59

@FransM : It looks like you're the only one who cared about Fedora on the Orange PI. I try to make the latest FC22 image boot on my Orange PI PC with no luck so far. I've followed the installation guide and used your script but no dice. Would you mind look into it?

loboris post at 2015-10-13 06:47:55

I have Fedora 22 installation running without problem on OrangePI H3 boards. I'll post the images soon.

Drakoh post at 2015-10-13 16:30:18

loboris replied at 2015-10-13 06:47
I have Fedora 22 installation running without problem on OrangePI H3 boards. I'll post the images so ...

@loboris: You own this place, seriously. I really appreciate your efforts in the OPI community. You should consider writing a few guides/tutorials to share your know-how with those who care.

loboris post at 2015-10-14 04:24:42

Fedora 22 images upladed to Mega, more info here.

Drakoh post at 2015-10-14 16:07:34

Thanks man! I'm already running it on my OPI-PC.

P.S.: Maybe you should create a thread int the Fedora forum, pointing to your other thread with the images and infos.

kingfish600 post at 2015-10-15 00:54:29

I tried it but the Ethernet did not work.

makama80 post at 2015-10-15 04:41:35

On what board? I just tried it on my OPI+ and guess what? It worked like a charm!
page: [1]
View full version: FC22 alpha 3