Go to advanced search

by laroche
Sun Mar 24, 2019 3:15 pm
Forum: Debian
Topic: Debian Stretch ARM64 for Raspberry Pi 3
Replies: 15
Views: 12127

Re: Debian Stretch ARM64 for Raspberry Pi 3

vmdb2 from Debian can be used to build arm64 images based of standard Debian. I don't use a GUI, just standard server stuff. I have uploaded a sample configuration to https://github.com/laroche/arm-devel-infrastructure/tree/master/vmdb2-debian that should be easy to use for new images. (It is basica...
by laroche
Fri Oct 05, 2018 8:11 am
Forum: General discussion
Topic: Watchdog?
Replies: 3
Views: 406

Re: Watchdog?

You can also enable a watchdog in config.txt to have the GPU supervise the system: dtparam=watchdog=on

best regards,

Florian La Roche
by laroche
Wed Aug 15, 2018 11:03 am
Forum: Other
Topic: Linux Kernel 4.18 incl Pi3 and 3B+ support
Replies: 3
Views: 5124

Re: Linux Kernel 4.18 incl Pi3 and 3B+ support

The changes for Pi that are not yet merged into the official kernel release are all very clean and stable. The default kernel is right now 4.14.z, but you can also try out the current 4.18 release kernel together with the Pi changes from: https://github.com/raspberrypi/linux/tree/rpi-4.18.y So it's ...
by laroche
Tue Jul 24, 2018 11:51 am
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 54378

Re: Yet Another Bare Metal Tutorial for the RPi3

If this is really specific to ubuntu, you can also use a pre-compiled compiler
via

Code: Select all

apt-get install g++-aarch64-linux-gnu
Add symlinks or change the Makefiles to use this compiler for the
Bare Metal Tutorial.

best regards,

Florian La Roche
by laroche
Mon Jul 09, 2018 4:25 pm
Forum: Bare metal, Assembly language
Topic: Bare metal hang when reading from SD Card?
Replies: 23
Views: 2188

Re: Bare metal hang when reading from SD Card?

There is one more location in fat.c with unaligned data. Also, instead of of using an extra (unsigned char*) pointer into the data, I've changed the code to use consecutive "unsigned char" entries. The code looks much cleaner with this. Patch is available at: https://github.com/bztsrc/raspi3-tutoria...
by laroche
Sun Jul 08, 2018 12:39 pm
Forum: Bare metal, Assembly language
Topic: Bare metal hang when reading from SD Card?
Replies: 23
Views: 2188

Re: Bare metal hang when reading from SD Card?

Hello bzr, thanks for merging in changes and overall a big thanks for your great repo. About: CurrentEL: The compiler issues a read into a 64bit register for "CurrentEL". Using a "unsigned int" works fine for gcc, but "clang" is more restrictive and won't compile this line of code. All other calls t...
by laroche
Sun Jul 08, 2018 12:34 pm
Forum: Bare metal, Assembly language
Topic: Bare metal hang when reading from SD Card?
Replies: 23
Views: 2188

Re: Bare metal hang when reading from SD Card?

Hello Lizard*, I use the following linker change to make sure bss end is aligned to 8 bytes and _end is aligned to 4096 bytes: --- a/0F_executionlevel/link.ld +++ b/0F_executionlevel/link.ld @@ -35,8 +35,10 @@ SECTIONS __bss_start = .; *(.bss .bss.*) *(COMMON) + . = ALIGN(8); __bss_end = .; } + . = ...
by laroche
Sun Jul 08, 2018 7:12 am
Forum: Bare metal, Assembly language
Topic: Bare metal hang when reading from SD Card?
Replies: 23
Views: 2188

Re: Bare metal hang when reading from SD Card?

Hello bzt, I have added a pull request to https://github.com/bztsrc/raspi3-tutorial. I think you have forgotten one more place in fat.c that can be miscompiled by gcc. Due to the miscompiles, I now use "clang -target aarch64-unknown-eabihf -march=armv8-a+nosimd+nofp". Adding a utils.c with memcmp() ...
by laroche
Fri Jul 06, 2018 8:36 am
Forum: Bare metal, Assembly language
Topic: Bare metal hang when reading from SD Card?
Replies: 23
Views: 2188

Re: Bare metal hang when reading from SD Card?

Hello bzt, I tried to check if my gcc 7.3.0 from Ubuntu 18.04LTS also miscomppiles your fat.c source code. If I add the following lines into fat.c: unsigned int test0(bpb_t *bpb) { return ((*((unsigned int *)&bpb->nf) >> 8) & 0xFFFF) * sizeof(fatdir_t); } unsigned int test1(bpb_t *bpb) { return bpb-...

Go to advanced search