Go to advanced search

by bzt
Sat Oct 05, 2019 4:38 pm
Forum: Bare metal, Assembly language
Topic: Spider-OS a new operating system
Replies: 113
Views: 19810

Re: Spider-OS a new operating system

Hi Aran, I'd like to say you have a really amazing project here! Keep up the good work! To my knowledge FASMARM does not exist on Raspbian FASMARM by definition is a cross-assembler, it was designed to run on x86 generating ARM output. So you're right, you can't run it on Raspberry natively. Cheers,...
by bzt
Sat Oct 05, 2019 4:30 pm
Forum: Bare metal, Assembly language
Topic: What can i really make in ARM Assembly
Replies: 18
Views: 1877

Re: What can i really make in ARM Assembly

If you use GCC then you get all the C start up stuff included (and a different entry point "main" instead of "_start"), and a dependency on libc. I just tried it for fun (see above), about 5.2k extra for crt0 and the stuff for linking libc. You can get rid of those too, if you pass "-nostartfiles" ...
by bzt
Sat Sep 28, 2019 7:41 pm
Forum: Bare metal, Assembly language
Topic: First Hardware Exercise
Replies: 5
Views: 1309

Re: First Hardware Exercise

Hi I fancied doing some 'bare metal' work on the RPi, but took one look at the 'sticky' tutorial at the top of this section, and immediately gave up. I'd never get past Step 0, which involved installing some heavy-duty tools, and anyway that is not my interest. I'm sorry if that looked that hard. Yo...
by bzt
Sat Sep 28, 2019 7:32 pm
Forum: Bare metal, Assembly language
Topic: PI4 memory and framebuffer
Replies: 4
Views: 1188

Re: PI4 memory and framebuffer

Hi, 1. According to Mailbox docs that's the correct way. (Actually that's the only way as there are no other memory related mailboxes, at least those two are the only ones documented). So far this worked for me, although I doesn't have an RPi4 4G model. What if you get MAX(ARM base+size, VC base+siz...
by bzt
Sat Sep 21, 2019 12:59 pm
Forum: Bare metal, Assembly language
Topic: Raspberry Pi4 firmware questions
Replies: 2
Views: 900

Re: Raspberry Pi4 firmware questions

Hi, Hi, Since the firmware code is not open source, I am trying to find documentation https://github.com/raspberrypi/documentation is a good place to start. Check out the tutorials on this forum too, they have many links. I believe that raspberry pi4 firmware does a lot of things, including ddr init...
by bzt
Sat Sep 21, 2019 12:30 pm
Forum: Bare metal, Assembly language
Topic: differences between raspi3 and qemu 4.10 with -M raspi3, synchronous exeception
Replies: 2
Views: 845

Re: differences between raspi3 and qemu 4.10 with -M raspi3, synchronous exeception

Hi, The qemu emulator is more permissive than the real hardware. This means that everything that runs on a real hardware, will run under qemu without problems, but not the other way around. Qemu is known to handle misaligned instructions just fine which would case an abort on real hardware. Now abou...
by bzt
Sat Sep 21, 2019 12:04 pm
Forum: Bare metal, Assembly language
Topic: Error: invalid operands (*ABS* and *UND* sections) for assembly on the RPi Zero
Replies: 7
Views: 1125

Re: Error: invalid operands (*ABS* and *UND* sections) for assembly on the RPi Zero

Hi, As LdB wrote, "as" does not recognize the "|" operator. Either you precalculate the constant yourself, or you should use "gcc", which has a precompiler that does resolve "|" in the constant before it passes the source to the assembler (see "gcc -S"). Second, RPi Zero is not a CortexA53, and it d...
by bzt
Tue Sep 10, 2019 2:36 pm
Forum: Bare metal, Assembly language
Topic: Detecting RPi4 programatically
Replies: 8
Views: 724

Re: Detecting RPi4 programatically

Hi, Thank you for your answers! @LdB: it's not about 32 bit vs. 64 bit, but running AArch64 mode on A53 vs. A72. And I need that in bare metal, so not under Linux. @rpdom: unfortunately mailbox is a no go, because A53 and A72 uses different MMIO base address. We need to know that before we can use m...
by bzt
Mon Sep 09, 2019 11:29 am
Forum: Bare metal, Assembly language
Topic: Detecting RPi4 programatically
Replies: 8
Views: 724

Detecting RPi4 programatically

Hi, Is it possible to detect if an AArch64 image is running on an RPi3 or on an RPi4? I have a feeling that I saw something similar here, using an ARM system register and comparing it's value against some magic constants. But no matter how hard I try, I simply can't find that post. It would help if ...
by bzt
Sun Sep 08, 2019 8:58 pm
Forum: Bare metal, Assembly language
Topic: some basic raspberry pi questions related to chadderz121 tutorials
Replies: 5
Views: 1206

Re: some basic raspberry pi questions related to chadderz121 tutorials

Hi, I'll try to answer some of your remaining questions. 7). Do I miss any other important hardware? Are there tutorials on how to bring up the rest of the hardwares? That depends what you want to do on your RPi. One hardware that can be useful is the interrupt controller. And yes, there are tutoria...
by bzt
Fri Sep 06, 2019 5:41 pm
Forum: Networking and servers
Topic: Absolutely Disable ipv6
Replies: 4
Views: 2288

Re: Absolutely Disable ipv6

This should work. You must create that ipv6.conf file with

Code: Select all

blacklist ipv6
What errors do you get? It would be helpful to see the exact messages.

Try "sudo sysctl -a", that should print out the current configuration. If ipv6 is disabled, you'll see that there.

Cheers,
bzt
by bzt
Fri Sep 06, 2019 5:33 pm
Forum: Networking and servers
Topic: How much data each device use on my network ?
Replies: 3
Views: 271

Re: How much data each device use on my network ?

Hi, As thagrol said, you have to make sure your traffic goes through your Pi. However, if you're interested in the Pi's traffic, you can query a stat in many many ways. Simplest is netstat -i The command ifconfig also prints out total TX/RX counts per interface. If you want to filter your traffic, t...
by bzt
Fri Sep 06, 2019 12:24 pm
Forum: Bare metal, Assembly language
Topic: Announce: RusPiRo - a kernel the Rust way ;)
Replies: 51
Views: 6185

Re: Announce: RusPiRo - a kernel the Rust way ;)

Hi, Yes, I agree with jahboater, C is very very different to C++, we should not mention them on the same page. I personally prefer C (not C++) for bare metal development, but it is really good to see that we have lot more programming languages to choose from! 1) C++, with rst's Circle library 2) Pas...
by bzt
Thu Sep 05, 2019 10:49 am
Forum: Bare metal, Assembly language
Topic: qemu raspi4
Replies: 0
Views: 418

qemu raspi4

Hi, "Good news, everyone!" (in Fanworth's voice :-)) Lately Phillipe was refactoring the qemu bcm SoC code to make the code modular. As a last step, yesterday he has submitted a patch that adds the bcm2711 SoC and "raspi4" machine type to qemu: https://lists.gnu.org/archive/html/qemu-devel/2019-09/m...
by bzt
Tue Sep 03, 2019 6:32 pm
Forum: Networking and servers
Topic: Can not copy without a password from a PI zero to a Pi3 through network.
Replies: 4
Views: 293

Re: Can not copy without a password from a PI zero to a Pi3 through network.

Hi, I need only some commands that work to copy the files without password automatically, of course nothing manually. I will integrate and call them from my python scripts. I already did this with other Linux commands and worked fine. Thank you for your advice you gave me so far. Then "scp" is defin...
by bzt
Tue Sep 03, 2019 11:37 am
Forum: Networking and servers
Topic: Can not copy without a password from a PI zero to a Pi3 through network.
Replies: 4
Views: 293

Re: Can not copy without a password from a PI zero to a Pi3 through network.

Hi, Known_hosts file lists all the servers you have connected to. If you create a new connection, ssh will ask you to verify the key's fingerprint. If the destination server is listed in known_hosts, it will not ask. About authorized_keys, it seems to me that you did it right. There's one thing thou...
by bzt
Mon Sep 02, 2019 6:53 pm
Forum: Bare metal, Assembly language
Topic: Yet Another Bare Metal Tutorial for the RPi3
Replies: 77
Views: 60749

Re: Yet Another Bare Metal Tutorial for the RPi3

Hi,
Johnbeaumont wrote:
Fri Aug 30, 2019 8:15 pm
Will this tutorial work on rpi4?
I didn't had the chance to get an RPi4 yet, so I couldn't test them. I believe you only have to change the MMIO_BASE define in gpio.h, and they should work. As far as I know, all the devices those tutorials use are available on Rpi4 too.

Cheers,
bzt
by bzt
Mon Sep 02, 2019 6:32 pm
Forum: Bare metal, Assembly language
Topic: Raspbian assembly draw a line on screen
Replies: 7
Views: 1104

Re: Raspbian assembly draw a line on screen

@LdB: it was me, bzt not rst, but that's okay :-) Thanks all. Yes I am using ASM on raspbian. When I did ASM on the Archimedes (admittedly a long time ago!) it was easier to access video memory. Ah, I see. Then those framebuffer examples I linked are no good to you, they are for bare metal. Under Li...
by bzt
Thu Aug 29, 2019 9:58 am
Forum: Bare metal, Assembly language
Topic: Raspbian assembly draw a line on screen
Replies: 7
Views: 1104

Re: Raspbian assembly draw a line on screen

Hi, Thanks. This can’t be done in asm? In Risc OS you a section of memory was reserved for the screen so you could just write to that ... Absolutely, it can be done in ASM. I'm a little bit confused though, because there's a mention to Raspbian here, although your post is in Bare metal topic. Anyway...
by bzt
Fri Jul 19, 2019 10:59 am
Forum: Automation, sensing and robotics
Topic: Electronic chess board and identifying specific pieces
Replies: 8
Views: 668

Re: Electronic chess board and identifying specific pieces

Hi If transparent or semi-transparent chess-board is an option, then I'd put a camera beneath and a small easily identifiable shape or color code on the bottom of each chess-piece. That's the simplest and cheapest solution, requires only one reader, and it is guaranteed that pieces won't interfere (...
by bzt
Mon Jul 15, 2019 12:25 pm
Forum: General programming discussion
Topic: Script for check IP adress
Replies: 3
Views: 485

Re: Script for check IP adress

Hi, Using ipinfo.io reveals your real IP, I'd recommend against that. There's a simpler solution, use ip ro get 8.8.8.8 Replace the IP address with one that should go through the tunnel. It returns a line like: 8.8.8.8 via x.x.x.x dev tun0 src x.x.x.x If there's no "dev tun0" (or whatever your tunne...
by bzt
Mon Jul 15, 2019 12:15 pm
Forum: General discussion
Topic: RPi4 chargers
Replies: 19
Views: 1289

Re: RPi4 chargers

just don't use an e-marked cable Which leads us back to my original question: how can I know without trying it out? Is there a standard marking on the box to indicate the charger comes with an e-marked cable? I mean there are codes on the box to indicate European, British and American plug types, i...
by bzt
Mon Jul 15, 2019 8:33 am
Forum: Bare metal, Assembly language
Topic: Kernel switcher... kernel?
Replies: 4
Views: 1398

Re: Kernel switcher... kernel?

Hi, The magic keyword you need to google for is "raspberrypi dual boot". There are boot managers written for the RPi, and they do exactly as @pik33 described (except the overwrite part, which is unnecessary with chain loading). My personal favourite is jncronin's multiboot compatible rpi-boot . Many...
by bzt
Sat Jul 13, 2019 11:39 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7770

Re: Virtual memory and linking

Hi, You could take a look at my bootloader . It's loaded at 80000, which loads an ELF kernel from the SD card (or over serial) and sets up paging for it, jumping to the entry point in upper-half address. That way your kernel can be an ELF (no objconv needed), purely linked to upper-half, forgetting ...
by bzt
Sat Jul 13, 2019 11:28 am
Forum: Bare metal, Assembly language
Topic: Reserving cores for bare-metal programs - interupts
Replies: 36
Views: 5240

Re: Reserving cores for bare-metal programs - interupts

Hi,

I'm not sure about the new GIC, but Pi4 also has the old interface to the ARM Q4 interrupt controller with which you can route every single interrupt to a specific core.

Cheers,
bzt

Go to advanced search