Go to advanced search

by Kendek
Mon Sep 30, 2019 9:50 am
Forum: Raspberry Pi Desktop for PC and Mac
Topic: running a webserver from Raspberry Pi (32 bit or 64?)
Replies: 10
Views: 1560

Re: running a webserver from Raspberry Pi (32 bit or 64?)

1. will Raspberry Pi 4 run the same Raspbian as per the above x86_64? The RPi4 is an ARM64-based product, and also fully backwards-compatible with binaries built for armhf or armel. The Raspbian is armhf by default, but you can install the 64-bit (ARM64, not AMD64) test kernel . Uname output with 6...
by Kendek
Mon Sep 30, 2019 5:20 am
Forum: General discussion
Topic: running the system (a pi4b) off of ssd, will it give speed improvements?
Replies: 14
Views: 772

Re: Ssd

I had a another ASM1351 adapter sitting around that I tried the StarTech firmware on, but it the update utility wouldn't work on it. Didn't really expect it to - device id was 174c:1351 instead of 174c:55aa . The StarTech's updater doesn't work, but I've extracted the 150708_B1_0A_02.bin. You can d...
by Kendek
Sun Sep 29, 2019 7:28 pm
Forum: General discussion
Topic: running the system (a pi4b) off of ssd, will it give speed improvements?
Replies: 14
Views: 772

Re: Ssd

Will it complete the a bonnie benchmark without any errors in syslog? sudo apt-get install bonnie++ sudo bonnie++ -u root -d /mnt/path/to/ssd The "Rewriting" phase can break some adapters that otherwise seem OK. It's an SMR HDD, 2.5" WD WD20SPZX: > bonnie++ -u root -d /data Using uid:0, gid:0. Writ...
by Kendek
Sun Sep 29, 2019 5:55 pm
Forum: General discussion
Topic: running the system (a pi4b) off of ssd, will it give speed improvements?
Replies: 14
Views: 772

Re: Ssd

Have you found an USB3 adapter for the pi that supports both UASP and TRIM? All StarTech products with ASMedia ASM1351 chip . Just install the firmware update. I'm using cable-style adapters , and with the official firmware 150708B10103 the UASP and the TRIM/UNMAP are working well. Lsusb: /: Bus 02...
by Kendek
Sat Sep 28, 2019 6:05 pm
Forum: General discussion
Topic: Encrypted drives
Replies: 4
Views: 303

Re: Encrypted drives

lowfat wrote:
Sat Sep 28, 2019 5:40 pm
I'm OK with entering the password at boot-up if the bootloader supports that.
You will need initramfs if you want to encrypt the system partition.
by Kendek
Sat Sep 28, 2019 12:55 pm
Forum: General discussion
Topic: Encrypted drives
Replies: 4
Views: 303

Re: Encrypted drives

The RPi4 doesn't have hardware-accelerated AES support, so the encryption is not very fast. The Google Adiantum performs better if you want an encrypted partition with LUKS. cryptsetup luksFormat --type=luks2 --sector-size=4096 -c xchacha12,aes-adiantum-plain64 -s 256 -h sha512 --use-urandom /dev/sd...
by Kendek
Sat Sep 28, 2019 10:55 am
Forum: General discussion
Topic: running the system (a pi4b) off of ssd, will it give speed improvements?
Replies: 14
Views: 772

Re: Ssd

A good SSD is much faster than an SD card in Pi, if connected through USB 3.x. Especially with UASP and TRIM/UNMAP support.
by Kendek
Thu Sep 26, 2019 5:40 pm
Forum: Advanced users
Topic: How to maintain correct module_layout value when compiling driver
Replies: 2
Views: 169

Re: How to maintain correct module_layout value when compiling driver

So you maybe significantly modified the source code, that's why the module_layout value change.
Try to edit your .ko file with a hex editor, change the value to match the original.

Image
by Kendek
Thu Sep 26, 2019 9:32 am
Forum: Advanced users
Topic: Pi4 64-bit raspbian kernel for testing - Focus on Pi4
Replies: 269
Views: 52171

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

@dom is there any way we can get the kernel headers for the 64-Bit kernel? I;m trying to set up a WireGuard Vpn Server and cannot get Wireguard to install as a module without the headers. You need the kernel source, and a chrooted 64-bit environment: https://github.com/raspberrypi/linux http://cdim...
by Kendek
Wed Sep 25, 2019 2:11 pm
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 30
Views: 8560

Re: Raspberry Pi4 bootloader - network boot support - BETA

timg236 wrote:
Wed Sep 25, 2019 12:19 pm
I've uploaded a new version which fixes an intermittent slow/freeze boot from sd-card...
Thanks, this eeprom version is working well with LE on microSD card. No more delayed startup, and compatible with older start.elf.
by Kendek
Wed Sep 25, 2019 12:42 pm
Forum: General discussion
Topic: Gap in Raspbian images
Replies: 10
Views: 544

Re: Gap in Raspbian images

If you would like to fix it, a PR can be sent here https://github.com/RPi-Distro/pi-gen/blob/master/export-image/prerun.sh#L26 16 - ROUNDED_ROOT_SECTOR=$(((BOOT_SIZE + ROUND_SIZE) / ROUND_SIZE * ROUND_SIZE / 512 + 8192)) 16 + ROUNDED_ROOT_SECTOR=$(((BOOT_SIZE + ROUND_SIZE) / 512)) 26 - +$((BOOT_SIZ...
by Kendek
Wed Sep 25, 2019 11:31 am
Forum: Advanced users
Topic: Pi4 64-bit raspbian kernel for testing - Focus on Pi4
Replies: 269
Views: 52171

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

dom wrote:
Tue Sep 24, 2019 6:27 pm
Try updating now - I've added CONFIG_USB_UAS.
Thanks, the UAS is working as expected in the 64-bit kernel 4.19.75. :)
by Kendek
Wed Sep 25, 2019 9:49 am
Forum: General discussion
Topic: Gap in Raspbian images
Replies: 10
Views: 544

Re: Gap in Raspbian images

The boot partition is aligned with a 4MB Erase Block Boundary, its size is a multiple of 4MB , so is the root partition aligned with a 4MB Erase Block Boundary, but it would if it started at 532480 immediately following the boot partition. Yes, but currently the first partition ends in sector 53248...
by Kendek
Wed Sep 25, 2019 8:41 am
Forum: General discussion
Topic: Gap in Raspbian images
Replies: 10
Views: 544

Re: Gap in Raspbian images

It's because the first, FAT32 boot partition is larger exactly one sector than the ideal. 256 MiB (524288s) proper last sector = 8192 + 256 * 1024 * 1024 / 512 - 1 = 532479 If the last sector is 532480 (so 256 MiB + 512 bytes), then the first sector for the second partition is 540672. parted /dev/mm...
by Kendek
Tue Sep 24, 2019 5:57 pm
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 30
Views: 8560

Re: Raspberry Pi4 bootloader - network boot support - BETA

Managed to get into raspbian and flashed back to. 10-09-19 but its not worked for me If you want to revert the eeprom to the latest stable version, just use these commands: wget -O /boot/recovery.bin https://github.com/raspberrypi/rpi-eeprom/raw/master/firmware/recovery.bin wget -O /boot/pieeprom.u...
by Kendek
Tue Sep 24, 2019 1:59 pm
Forum: General discussion
Topic: Best way to make RPi report it's public IP
Replies: 14
Views: 536

Re: Best way to make RPi report it's public IP

Code: Select all

wget -qO- ifconfig.co
curl ifconfig.co
or if you have an IPv6 WAN address too, but you need the IPv4:

Code: Select all

wget -qO- v4.ifconfig.co
curl v4.ifconfig.co
by Kendek
Mon Sep 23, 2019 5:25 pm
Forum: Advanced users
Topic: Headless RasPi running Python script
Replies: 15
Views: 468

Re: Headless RasPi running Python script

/etc/rc.local

Code: Select all

while : ; do script.py ; done &
So the script will be restarted immediately even if exited unexpectedly.
by Kendek
Mon Sep 23, 2019 5:04 pm
Forum: Troubleshooting
Topic: Permission Denied: Can't run my .py program (Gatttool)
Replies: 1
Views: 62

Re: Permission Denied: Can't run my .py program (Gatttool)

Code: Select all

chmod +x prjMiFlora.py
./prjMiFlora.py
or

Code: Select all

python3 prjMiFlora.py
by Kendek
Mon Sep 23, 2019 4:58 pm
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 30
Views: 8560

Re: Raspberry Pi4 bootloader - network boot support - BETA

HiassofT wrote:
Mon Sep 23, 2019 4:46 pm
Which LibreELEC version are you using, I assume the latest official one, 9.2 beta 1?
Yeah, LibreELEC 9.1.501, and there is no such delay with previous eeprom versions.
by Kendek
Mon Sep 23, 2019 4:33 pm
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 30
Views: 8560

Re: Raspberry Pi4 bootloader - network boot support - BETA

Did you also update fixup4.dat (I've updated the docs to explicitly state that this is required) ? My best guess is that Linux is booting but doesn't have enough CMA memory because start4.elf has wrong/missing fixup information. I forgot that, but now the LibreELEC is working well. :) There is a ve...
by Kendek
Mon Sep 23, 2019 3:11 pm
Forum: Device Tree
Topic: RPi4 Ethernet LED control
Replies: 3
Views: 1702

Re: RPi4 Ethernet LED control

FYI, the PHY appears to be a BCM54213PE... Thanks, I successfully disabled the ethernet LEDs in the drivers/net/phy/broadcom.c with BCM_LED_SRC_OFF : static void bcm54213pe_config_init(struct phy_device *phydev) { ... val = BCM5482_SHD_LEDS1_LED1(BCM_LED_SRC_OFF) | BCM5482_SHD_LEDS1_LED3(BCM_LED_SR...
by Kendek
Mon Sep 23, 2019 2:41 pm
Forum: Advanced users
Topic: Raspberry Pi4 bootloader - network boot support - BETA
Replies: 30
Views: 8560

Re: Raspberry Pi4 bootloader - network boot support - BETA

I tried first with LibreELEC on the microSD card, with the following configuration: [all] BOOT_UART=0 WAKE_ON_GPIO=0 POWER_OFF_ON_HALT=1 DHCP_TIMEOUT=45000 DHCP_REQ_TIMEOUT=4000 TFTP_FILE_TIMEOUT=15000 TFTP_IP= BOOT_ORDER=0x1 SD_BOOT_MAX_RETRIES=3 NET_BOOT_MAX_RETRIES=5 [none] FREEZE_VERSION=0 After...
by Kendek
Sun Sep 22, 2019 4:36 pm
Forum: Advanced users
Topic: Pi4 64-bit raspbian kernel for testing - Focus on Pi4
Replies: 269
Views: 52171

Re: Pi4 64-bit raspbian kernel for testing - Focus on Pi4

Why is the UASP support not enabled in the ARM64 kernel config?
I just tested it, recompiled the kernel with CONFIG_USB_UAS=y, and the UAS is working well, same as with 32-bit kernel.
I'm using a custom 64-bit Ubuntu, based on the base ARM64 tar.gz, and I need a full-feature kernel.
by Kendek
Sat Sep 21, 2019 12:42 pm
Forum: Troubleshooting
Topic: Very hot USB thumbdrives - can they damage the RPi?
Replies: 5
Views: 188

Re: Very hot USB thumbdrives - can they damage the RPi?

Short USB extension cable maybe not elegant but may helps to prevent the devices from heating each other.

Image
by Kendek
Fri Sep 20, 2019 3:36 pm
Forum: General discussion
Topic: Config question for MiniDlna (RPi4)
Replies: 7
Views: 349

Re: Config question for MiniDlna (RPi4)

I tested it, and the inotify is working well with symlinks. Maybe do a service minidlna restart when the LG TV is on, and see if the new server appears. You can do a refresh on the clients as well, so the new files should be there. I have a Samsung TV, so I changed the notify_interval 's value to 90...

Go to advanced search