Am 2018-08-09 13:58, schrieb Robert Moskowitz: > On 08/09/2018 07:34 AM, arm_ml at rirasoft.de wrote: >> Am 2018-08-07 12:23, schrieb Pablo Sebastián Greco: >>> <snip> >>>> >>>> Hello Pablo, >>>> >>>> I've bought this device 1 or 2 years ago, but didn't find any good >>>> OS (Fedora, CentOS) for that. How to get this board with your kernel >>>> running? Any tips or howto? >>>> >>>> I also have 2 Cubietruck 3 with CentOS. >>>> >>> Well, the easiest thing to do would be to just use Fedora Rawhide >>> (current kernels have smp, ethernet, etc..., all but hdmi). >>> WRT CentOS, I can think of two ways to do it, both require the >>> kernels >>> I mentioned earlier in the thread. >>> 1) (Easier) >>> - Prepare the image as if you where using your cubietruck 3 >>> - boot that image and update (from the cubietruck 3) >>> - activate the repo and install the kernel >>> - change uboot to the cubietruck plus >>> - shutdown and move the image/sd to the new device. >>> >>> 2) (Harder) >>> - Prepare the image for the cubietruck plus >>> - download the kernel rpms and copy them to the sd >>> - boot the cubietruck plus with that image (it has no ethernet, no >>> wifi, and most likely no hdmi, so you'll have to do it via a serial >>> console) >>> - login via console and manually install the kernel >>> - reboot >>> >>> For both metods (and also for Fedora), there may be modules that are >>> not loaded into initramfs, which makes it panic at boot. >>> I usually add this to a .conf file in /etc/dracut.conf.d/ >>> add_drivers+=" phy-sun4i-usb sunxi-rsb axp20x-rsb axp20x-regulator >>> axp20x-pek axp20x_ac_power axp20x_battery axp20x_usb_power >>> axp288_fuel_gauge ac100 rtc-ac100" >>> Some may not be needed anymore, and some may not be needed at all, >>> but >>> hey, it works for me ;) >>> >>> One last thing that also applies to Fedora and CentOS, you may notice >>> that you get a random MAC for the ethernet every time you boot, you >>> can fix that by adding "MACADDR=<mac>" to >>> /etc/sysconfig/network-scripts/ifcfg-eth0 >>> >>> HTH. >>> >>> Pablo. >>> >>> _______________________________________________ >>> Arm-dev mailing list >>> Arm-dev at centos.org >>> https://lists.centos.org/mailman/listinfo/arm-dev >> >> >> Hello Pablo, >> >> thank you very much for these tipps. I'm now running >> Fedora-Minimal-armhfp-Rawhide-20180802.n.0-sda.raw.xz. I think, Fedora >> would be better for my need (pi-hole, DNS, Print-server, Time-server, >> ...) > > I beg to differ. Fedora roles versions every 6 months and EOLs a > version in 2 years. This means you are constantly upgrading versions > of important servers. Where as Centos has a 10yr EOL policy. > > I only use Fedora for my notebook and when I REALLY need the current > version of something (like openSSL 1.1.1 for EDDSA testing). > > Get Fedora working. Work it out, then switch to Centos for production. > > Just my 5cent worth. > >> >> As I can see, there is a EMMC-disc with 8 GB. Did you manage to boot >> from this disc? At the moment, there is a older installation from >> linaro. >> >> [root at cubietruckplus ~]# lsblk >> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT >> mmcblk0 179:0 0 7.3G 0 disk >> |-mmcblk0p1 179:1 0 111.9M 0 part >> `-mmcblk0p2 179:2 0 7.1G 0 part >> mmcblk0boot0 179:8 0 4M 1 disk >> mmcblk0boot1 179:16 0 4M 1 disk >> mmcblk1 179:24 0 29G 0 disk >> |-mmcblk1p1 179:25 0 29M 0 part >> |-mmcblk1p2 179:26 0 488M 0 part /boot >> |-mmcblk1p3 179:27 0 244M 0 part [SWAP] >> `-mmcblk1p4 179:28 0 28.2G 0 part / >> zram0 252:0 0 954.6M 0 disk [SWAP] >> [root at cubietruckplus ~]# >> >> Thanks >> Andreas >> _______________________________________________ >> Arm-dev mailing list >> Arm-dev at centos.org >> https://lists.centos.org/mailman/listinfo/arm-dev Okay, I give CentOs on this device a try. What have I done: 1. write Fedora-Minimal-armhfp-Rawhide-20180802.n.0-sda.raw.xz on the SD-card 2. delete all 4 partions 3. mount CentOS-Userland-7-armv7hl-Minimal-1611-CubieTruck.img as loop device 4. create 3 new partions on SD-Card (same size as CentOS-Image) 5. copy 1. and 3. partion from CentOS to SD-Card 6. copy sun8i-a83t-cubietruck-plus.dtb From Fedora to /mnt/SDCard/1/dtb-4.4.34-201.el7.armv7hl/ 7. boot from SD-Card boot log: U-Boot SPL 2018.09-rc1 (Jul 31 2018 - 12:18:07 +0000) DRAM: 2048 MiB Trying to boot from MMC1 U-Boot 2018.09-rc1 (Jul 31 2018 - 12:18:07 +0000) Allwinner Technology CPU: Allwinner A83T (SUN8I 1673) Model: Cubietech Cubietruck Plus I2C: ready DRAM: 2 GiB MMC: SUNXI SD/MMC: 0, SUNXI SD/MMC: 1 Loading Environment from FAT... *** Warning - bad CRC, using default environment Failed (-5) In: serial Out: serial Err: serial Net: No ethernet found. starting USB... USB0: failed to get usb PHY Port not available. USB1: failed to get usb at 01c1a000 usb PHY Port not available. USB2: failed to get usb at 01c1b000 usb PHY Port not available. Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... Found /extlinux/extlinux.conf Retrieving file: /extlinux/extlinux.conf 336 bytes read in 13 ms (24.4 KiB/s) Ignoring unknown command: ui Ignoring malformed menu command: autoboot Ignoring unknown command: totaltimeout centos Options 1: centos Enter choice: 1: centos Retrieving file: /initramfs-4.4.34-201.el7.armv7hl.img 35020663 bytes read in 22174 ms (1.5 MiB/s) Retrieving file: /vmlinuz-4.4.34-201.el7.armv7hl 6051744 bytes read in 620 ms (9.3 MiB/s) append: enforcing=0 root=UUID=ad25a528-baf4-469c-bd12-5276e8f5f9ae Retrieving file: /dtb-4.4.34-201.el7.armv7hl/sun8i-a83t-cubietruck-plus.dtb 548864 bytes read in 260 ms (2 MiB/s) ERROR: Did not find a cmdline Flattened Device Tree Could not find a valid device tree SCRIPT FAILED: continuing... Found U-Boot script /boot.scr 2 bytes read in 12 ms (0 Bytes/s) ## Executing script at 43100000 Wrong image format for "source" command SCRIPT FAILED: continuing... switch to partitions #0, OK mmc1(part 0) is current device Scanning mmc 1:1... starting USB... USB0: failed to get usb PHY Port not available. USB1: failed to get usb at 01c1a000 usb PHY Port not available. USB2: failed to get usb at 01c1b000 usb PHY Port not available. USB is stopped. Please issue 'usb start' first. starting USB... USB0: failed to get usb PHY Port not available. USB1: failed to get usb at 01c1a000 usb PHY Port not available. USB2: failed to get usb at 01c1b000 usb PHY Port not available. No ethernet found. missing environment variable: pxeuuid Retrieving file: /extlinux/pxelinux.cfg/00000000 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/0000000 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/000000 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/00000 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/0000 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/000 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/00 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/0 No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/default-arm-sunxi No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/default-arm No ethernet found. Retrieving file: /extlinux/pxelinux.cfg/default No ethernet found. Config file not found starting USB... USB0: failed to get usb PHY Port not available. USB1: failed to get usb at 01c1a000 usb PHY Port not available. USB2: failed to get usb at 01c1b000 usb PHY Port not available. No ethernet found. No ethernet found Greetings Andreas