terça-feira, abril 12, 2016

Arch Arm32 RaspberryPi3 CentOS Install with wifi and upgrade kernel



SpecialInterestGroup/AltArch/Arm32/RaspberryPi3 - CentOS Wiki
https://wiki.centos.org/SpecialInterestGroup/AltArch/Arm32

Fedora reference -> https://fedoraproject.org/wiki/Raspberry_Pi


WIFI
For wifi on the rpi3, just proceed with those steps : 

curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/54bab3d6a6d43239c71d26464e6e10e5067ffea7/brcm80211/brcm/brcmfmac43430-sdio.bin > /usr/lib/firmware/brcm/brcmfmac43430-sdio.bin

curl --location https://github.com/RPi-Distro/firmware-nonfree/raw/54bab3d6a6d43239c71d26464e6e10e5067ffea7/brcm80211/brcm/brcmfmac43430-sdio.txt > /usr/lib/firmware/brcm/brcmfmac43430-sdio.txt


systemctl reboot


How to Enable Wifi on Fedora 23 ARM and CentOS Arm

Fedora 23 ARM system for my Raspberry Pi 3 B as this page(http://fedoraproject.org/wiki/Raspberry_Pi) says.

When I start the system, I find my wifi doesn't work, but finally, I solve the problem. Considering the others will also encounter this problem, I post the solution here:

1.Download the driver files from Github.com, the link is https://github.com/RPi-Distro/firmware-nonfree.
#git clone https://github.com/RPi-Distro/firmware-nonfree.git

After you execute this command, you will download the whole folder of firmware-nonfree, but we just need two files which are brcmfmac43430-sdio.bin and brcmfmac43430-sdio.txt, they are in the directory of firmware-nonfree/brcm80211/brcm/

2.Copy the driver files into /lib/firmware/brcm/
#cd firmware-nonfree/brcm80211/brcm/
#cp brcmfmac43430-sdio.bin brcmfmac43430-sdio.txt /lib/firmware/brcm/


3.Reboot your Raspberry Pi.
#reboot


This small tool was used by fedora... update kernel raspberry centos

Installing rpi-update

  • Install dependencies
# dnf install binutils git tar
  • Install rpi-update
# curl -L -o /usr/bin/rpi-update https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update
# chmod +x /usr/bin/rpi-update

Updating the Raspberry Pi firmware

The firmware (kernel, etc.) can easily be updated by running:
# rpi-update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
 *** Performing self-update
 *** Relaunching after update
 *** Raspberry Pi firmware updater by Hexxeh, enhanced by AndrewS and Dom
#############################################################
This update bumps to rpi-4.1.y linux tree
Be aware there could be compatibility issues with some drivers
Discussion here:
https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=113753
##############################################################
 *** Downloading specific firmware revision (this will take a few minutes)
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   168    0   168    0     0    221      0 --:--:-- --:--:-- --:--:--   221
100 49.2M  100 49.2M    0     0  1111k      0  0:00:45  0:00:45 --:--:--  974k
 *** Updating firmware
 *** Updating kernel modules
 *** depmod 4.1.18-v7+
 *** depmod 4.1.18+
 *** Updating VideoCore libraries
 *** Using HardFP libraries
 *** Updating SDK
 *** Running ldconfig
 *** Storing current firmware revision
 *** Deleting downloaded files
 *** Syncing changes to disk
 *** If no errors appeared, your firmware was successfully updated to 0d25b1c25d135090269ff74dc94dac0d31dcbcf9
 *** A reboot is needed to activate the new firmware
** END **


CentOS Linux on the Raspberry Pi 3


  • Download the official 32bit Image
  • Copy to sdcard
    • We recommend a class10 or better sdcard with 8gb or more of capacity.
    • unzx the image you downloaded above
    • dd if=CentOS-Userland-7-armv7hl-Minimal-RaspberryPi3.img of=/dev/mmcblk0 bs=8192; sync
  • Boot your Raspberry Pi 3 :
    • I've realised that this device will NOT boot from the usb power on a laptop ( my x1 carbon ), it does however boot from a wall plug that can supply 1.2A
    • Connect the ethernet port of the device to a network that has dhcp capability
    • power up the device, typical boot time is about 5 seconds from power up to having dhcp IP and login over the network
    • You should now be able to ssh into your rpi3 as user : "root" with pass: "centos" ; please change this password straight away!
    • The image comes configured with the default CentOS yum repos, and you should be able to do yum operations to add software and manage content. We are going to aim at a complete distro stack in the coming days, along with selected components from the EPEL repos.
    • Join us on the arm-dev list ( https://lists.centos.org/mailman/listinfo/arm-dev ) where we are talking about the user stories, the developer path and content for all our ARM support.


dd for windows - http://www.chrysocome.net/dd
xz for windows - http://tukaani.org/xz/
burn .img file with windows - https://sourceforge.net/projects/win32diskimager/

Nenhum comentário: