News for hackers. Stuff that matters.
Re:Xen Project officially ports its hypervisor to Raspberry ... by rwmj on Tuesday September 29, 2020 @11:41AM (#24629158)
RPi4 is interesting because it's the first Raspberry Pi with a serious amount of RAM (8GB), moderate speed CPUs (4 x Cortex A72), that can boot and run from external USB 3 SSDs, with UAS and UEFI+ACPI. Essentially you can now use them for aarch64 server SBSA/SBBR development.

It's about a third of the speed of my Intel i7 laptop from 18 months ago, which considering the incredibly low price I consider to be fantastic.

I recently got Fedora Server installed on one using Robert Grimm's instructions (linked from my blog along with other useful links here: https://rwmj.wordpress.com/2020/09/24/raspberry-pi-4-running...)

Re:Xen Project officially ports its hypervisor to Raspberry ... by kristopolous on Tuesday September 29, 2020 @12:03PM (#24629468)
Are you running a 64 bit kernel actually? Which distribution?

I found I could either get a 64 bit kernel (lots of things) Or decent hardware support (raspbian) but not both.

Re:Xen Project officially ports its hypervisor to Raspberry ... by iMerNibor on Tuesday September 29, 2020 @12:11PM (#24629582)
There is now beta (?) builds of a 64bit raspberry pi os (formerly known as raspbian) available: https://downloads.raspberrypi.org/raspios_arm64/images/

Not sure how well it works, but it is a thing now

Re:Xen Project officially ports its hypervisor to Raspberry ... by StillBored on Wednesday September 30, 2020 @11:31AM (#24639799)
I'm not sure I understand what the purpose of the raspberry pi OS is anymore. In the past it was a pretty custom kernel, with a user environment stripped down to work with a minimal RAM configuration. Everyone put up with nonstandard SSH daemons/window managers/missing packages/etc because due to the constrained environment and the fact that arm wasn't a first class citizen with the likes of ubuntu/redhat/etc.

These days, every single major distro has rpi instructions, and 8G of ram is more than some laptops come with. So, its a disservice that they don't just tell people, here are a list of disto's which have been qualified to run on the hardware, pick one, and oh BTW, you can run those OS's on your laptop too.

Re:Xen Project officially ports its hypervisor to Raspberry ... by retrac on Tuesday September 29, 2020 @01:24PM (#24630514)
I run Arch Linux ARM with the 64 bit kernel and userspace on my Raspberry Pi 3 for tinkering.

GPIO, Wifi, Ethernet, framebuffer HDMI, USB all work fine.

Video acceleration was the last hardware not supported in 64 bit land, and recent kernels finally have some experimental support. I haven't tried it myself though.

Raspbian itself has a beta 64 bit for kernel for a few months now.

https://www.raspberrypi.org/blog/latest-raspberry-pi-os-upda...

Re:Xen Project officially ports its hypervisor to Raspberry ... by didip on Tuesday September 29, 2020 @01:17PM (#24630417)
With the latest Raspbian, you can always turn on the 64 bit kernel by modifying config.txt inside boot image and add: arm_64bit=1

My homelab is Kubernetes running on Raspberry Pi 4 with aarm64 architecture. So far, it works great.

Re:Xen Project officially ports its hypervisor to Raspberry ... by elheffe80 on Tuesday September 29, 2020 @02:04PM (#24631024)
> My homelab is Kubernetes running on Raspberry Pi 4

Honest question- do you just run one RPi4 or do you have multiple? Either way- how much ram do you have and do you find you use it all/wish you had more?

Re:Xen Project officially ports its hypervisor to Raspberry ... by didip on Tuesday September 29, 2020 @07:47PM (#24634401)
I have a cluster of 3 RPi4 each with 4GB RAM because it is super difficult to get the 8GB spec.

The more the better because it is difficult to run multiple dbs or queue systems right now.

Re:Xen Project officially ports its hypervisor to Raspberry ... by rwmj on Tuesday September 29, 2020 @12:28PM (#24629824)
Of course. The real problem is not the 64 bit kernel which you can easily get with Raspbian, but the 64 bit userspace for which you currently need a different distribution (but see sister comment). I'm using Fedora 33 Server.

  $ uname -a
  Linux rpi4.home.annexia.org 5.8.11-300.fc33.aarch64 #1 SMP Wed Sep 23 13:51:39 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux
Everything I care about except Wifi is currently supported.
Re:Xen Project officially ports its hypervisor to Raspberry ... by m463 on Tuesday September 29, 2020 @07:42PM (#24634372)
I recently saw an article on setting up jitsi on a pi, and I thought it required 64-bit.

https://gist.github.com/krithin/e50a6001c8435e46cb85f5c6c78e...

I guess there's a 64-bit ubuntu 20.04 server

Re:Xen Project officially ports its hypervisor to Raspberry ... by mixmastamyk on Tuesday September 29, 2020 @05:06PM (#24632987)
I've found Ubuntu Mate even easier to use than raspbian, and now it finally supports the Pi4:

https://ubuntu-mate.org/download/arm64/

Re:Xen Project officially ports its hypervisor to Raspberry ... by yjftsjthsd-h on Tuesday September 29, 2020 @12:10PM (#24629577)
Oh, that's excellent. The same group doing the RPi4 UEFI stuff also does a version for the Pi 3: https://github.com/pftf/RPi3
Re:Xen Project officially ports its hypervisor to Raspberry ... by rwmj on Tuesday September 29, 2020 @12:32PM (#24629884)
AIUI there are problems with that fact that the RPi3 doesn't have a "proper" GIC. The RPI4 has GICv2, but RPi3 has some sort of custom interrupt controller.
Re:Xen Project officially ports its hypervisor to Raspberry ... by pjmlp on Tuesday September 29, 2020 @01:17PM (#24630406)
Actually I am more impressed with the ESP32, given how much powerful it is than what we had at the high school computer club.
Re:Xen Project officially ports its hypervisor to Raspberry ... by ncmncm on Tuesday September 29, 2020 @04:10PM (#24632357)
ESP32 is fun, but its low-power states and transitions are said to be messed up, so not as useful as e.g. STM32 for battery-powered projects.

I have no first-hand knowledge, but would welcome reports from anyone who does.

Re:Xen Project officially ports its hypervisor to Raspberry ... by mwcampbell on Tuesday September 29, 2020 @10:05PM (#24635079)
If you're interested in something low-power and not running a general-purpose OS like Linux, watch for the launch of the Precursor [1]. The main processor (RISC-V on an FPGA) seems to be more powerful than an ESP32, and they rejected the ESP32 for the WiFi component specifically because of the low-power state transition issues. The intended application is a stand-alone secure enclave complete with LCD, keyboard, and audio, but it will be interesting to see what hacks are developed for this hardware.

[1]: https://www.crowdsupply.com/sutajio-kosagi/precursor

Re:Xen Project officially ports its hypervisor to Raspberry ... by ncmncm on Tuesday September 29, 2020 @11:20PM (#24635387)
Before I read about Precursor, I did not realize that FPGAs could be at the center of a low-power design.
Re:Xen Project officially ports its hypervisor to Raspberry ... by mwcampbell on Wednesday September 30, 2020 @07:01AM (#24637418)
To be clear, it looks like they've had to compromise on power consumption versus performance in their FPGA-based prototype:

https://betrusted.io/betrusted-architecture/

They plan to move to a custom ASIC later:

https://betrusted.io/dev-plan/

Re:Xen Project officially ports its hypervisor to Raspberry ... by exged on Wednesday September 30, 2020 @02:08AM (#24636114)
Yes, the ESP32 uses a ton of power relative to most MCUs (external flash comes at a cost!) and has relatively poor peripherals, documentation and tooling. But it's cheap and not bad if you need WiFi or Bluetooth.

Most non-networked projects would probably be better served by one of the numerous Cortex-M microcontrollers out there.