Go to advanced search

by pmcg521
Thu Jul 11, 2019 10:15 pm
Forum: Bare metal, Assembly language
Topic: Flush L1 cache BCM2837B0
Replies: 2
Views: 1097

Re: Flush L1 cache BCM2837B0

How can I get the USB back up with MMU enabled? I'm wondering if it's a coherency/DMA issue or something else to do with the MMU. You only talk in your description and your code snippet about cleaning or flushing the cache but for DMA operations to the USB controller you need two different scenario...
by pmcg521
Sat Jun 22, 2019 7:13 am
Forum: Bare metal, Assembly language
Topic: Flush L1 cache BCM2837B0
Replies: 2
Views: 1097

Flush L1 cache BCM2837B0

Pi 3 B+ with 32-bit bare-metal O/S. MMU is enabled for use of atomic operations (multicore). Caching on all memory except for peripherals. Now, USB transfers are not working with MMU caching enabled. The previously recognizable ethernet device now cannot initialize due to transfer errors. I suspecte...
by pmcg521
Thu Mar 01, 2018 10:03 pm
Forum: Networking and servers
Topic: [HELP A UNIVERSITY] network boot *no* bootcode.bin request!
Replies: 3
Views: 730

Re: [HELP A UNIVERSITY] network boot *no* bootcode.bin request!

I don't think it is reliable enough and I believe the problem is firmware or hardware related. If you get a 100% failure rate then there is probably an issue in your network (like slow bridge ports) or your server, but I don't believe you can get a 100% success rate. Thanks for your response. I hav...
by pmcg521
Tue Feb 27, 2018 9:46 pm
Forum: Networking and servers
Topic: [HELP A UNIVERSITY] network boot *no* bootcode.bin request!
Replies: 3
Views: 730

[HELP A UNIVERSITY] network boot *no* bootcode.bin request!

Preface: Sorry for the loud tag. I've had this issue for almost 2 months and am unable to narrow it down. Maybe it will be solved faster since Rpi devs are more classroom-friendly. I work for a university in the states. I am upgrading our network-booting cluster of Pi 1's to Pi 3's, used for teachin...
by pmcg521
Tue Jan 30, 2018 10:40 pm
Forum: Networking and servers
Topic: Netboot: daemon log practically empty [Pi3]
Replies: 0
Views: 296

Netboot: daemon log practically empty [Pi3]

EDIT: Please throw a suggestion at me! Anything helps at this point. I just want my client Pi to at least request files again (bootcode.bin, start.elf). I've network booted (client Pi 3, server Pi 3) successfully a few weeks ago, based entirely on this tutorial: https://www.raspberrypi.org/documenta...
by pmcg521
Wed Jan 24, 2018 4:49 pm
Forum: Networking and servers
Topic: Network boot a non-Raspbian OS? [Pi 3]
Replies: 4
Views: 1441

Re: Network boot a non-Raspbian OS? [Pi 3]

fruitoftheloom: The Blog may give some helpful hints: https://www.raspberrypi.org/blog/piserver/ Regards x86 Linux you can not go far wrong by using Debian Stretch with RPD: https://www.raspberrypi.org/downloads/r ... i-desktop/ Thanks for the quick reply. I had no idea PiServer existed. It seems t...
by pmcg521
Tue Jan 23, 2018 11:24 pm
Forum: Networking and servers
Topic: Network boot a non-Raspbian OS? [Pi 3]
Replies: 4
Views: 1441

Network boot a non-Raspbian OS? [Pi 3]

Hello, You all have been helpful with networks in the past and I'm hoping you can assist me further. Following this tutorial [https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md], I was able to successfully boot a Raspberry Pi 3 client, using another Pi 3 as a DH...
by pmcg521
Thu Oct 05, 2017 2:41 pm
Forum: Networking and servers
Topic: Network boot Pi3 from Pi3 server: Kernel Panic. VFS: unable to mount root fs on unknown-block(0,0)
Replies: 2
Views: 1468

Re: Network boot Pi3 from Pi3 server: Kernel Panic. VFS: unable to mount root fs on unknown-block(0,0)

DougieLawson wrote:
Mon Oct 02, 2017 8:08 pm
CommandLine can't be split over multiple lines. It has to be a single record with no embedded \R or \N characters.
Thank you so much. Truncated cmdline.txt to one single line, and network boot worked like a charm.
by pmcg521
Sun Oct 01, 2017 10:09 pm
Forum: Networking and servers
Topic: Network boot Pi3 from Pi3 server: Kernel Panic. VFS: unable to mount root fs on unknown-block(0,0)
Replies: 2
Views: 1468

Network boot Pi3 from Pi3 server: Kernel Panic. VFS: unable to mount root fs on unknown-block(0,0)

I have two Pi 3's. One is my client, the other the server. I've followed all steps in this documentation: https://www.raspberrypi.org/documentation/hardware/raspberrypi/bootmodes/net_tutorial.md When I turn on my SD-card-less client Pi3, I get 4 packets in tcpdump that look good (discover request an...
by pmcg521
Mon Sep 25, 2017 11:49 pm
Forum: Networking and servers
Topic: Network booting Pi 3 from my DHCP server
Replies: 5
Views: 3344

Re: Network booting Pi 3 from my DHCP server

Perhaps it would help if you told us what DHCP server software you are using? I am using Cobbler http://cobbler.github.io/manuals/quickstart/ Then the solution is trivial. What possible reason do they have for not running dnsmasq? It makes the whole network booting stuff "just work" as it can run b...
by pmcg521
Wed Sep 20, 2017 10:50 pm
Forum: Networking and servers
Topic: Network booting Pi 3 from my DHCP server
Replies: 5
Views: 3344

Network booting Pi 3 from my DHCP server

Edit: It's worth noting that I am attempting this without an SD card, as people say that works. I am trying to network boot my raspberry pi 3 through DHCP requests from my Linux server. I setup my Pi 3 (running Raspbian) as a client, as described here: https://www.raspberrypi.org/documentation/hardw...
by pmcg521
Fri Jul 21, 2017 7:11 pm
Forum: Bare metal, Assembly language
Topic: Run all 4 cores Raspberry Pi 3
Replies: 32
Views: 9365

Re: Run all 4 cores Raspberry Pi 3

Dwelch67, I have seen your nice example implementation in https://github.com/dwelch67/raspberrypi/blob/master/multi00/ and it does work correctly, randomly starting the cores that fight for address 0x40. I wanted to start each one at a different address and then access them like you did by waiting u...
by pmcg521
Thu Jul 20, 2017 9:23 pm
Forum: Device Tree
Topic: Pi3 Core Mailbox Write Addresses
Replies: 3
Views: 1583

Re: Pi3 Core Mailbox Write Addresses

Thanks so much for that info. Regarding this: Note though that the 0x40000000 is a physical address - it will need to be mapped into the virtual address space in order to be accessed by the ARMs. How do I map that space? I have seen this arm stub: https://github.com/raspberrypi/tools/blob/master/arm...
by pmcg521
Wed Jul 19, 2017 8:43 pm
Forum: Bare metal, Assembly language
Topic: Running on Pi3 secondary cores? BCM2837 Write Mailboxes?
Replies: 8
Views: 3038

Re: Running on Pi3 secondary cores? BCM2837 Write Mailboxes?

UNLESS If you have used a config.txt file and picked the processor up at 0x0 yourself I have a config.txt, however I am only using it to specify "device_tree=" which makes atags of use. So did you manually park the cores? If so work out a scheme to unpark them with your code. To park them, I used: ...
by pmcg521
Wed Jul 19, 2017 7:56 pm
Forum: Bare metal, Assembly language
Topic: Running on Pi3 secondary cores? BCM2837 Write Mailboxes?
Replies: 8
Views: 3038

Re: Running on Pi3 secondary cores? BCM2837 Write Mailboxes?

The Pi2 and 3 should be exactly the same in 32bit mode and the bootloader controls where the CPU cores are parked. You can look directly at the stubs https://github.com/raspberrypi/tools/tree/master/armstubs armstub7.S is the Pi2 and the Pi3 in 32bit mode armstub8.S is the Pi3 in 64 bit mode I will...
by pmcg521
Wed Jul 19, 2017 6:05 pm
Forum: Bare metal, Assembly language
Topic: Running on Pi3 secondary cores? BCM2837 Write Mailboxes?
Replies: 8
Views: 3038

Running on Pi3 secondary cores? BCM2837 Write Mailboxes?

I need to know the start addresses for each CPU core's write "mailbox" on the Pi3. I have tried using those from the Pi2, (the core addresses were as follows): core 1: 0x4000009C core 2: 0x400000AC core 3: 0x400000BC source (page 7): https://www.raspberrypi.org/documentati ... rev3.4.pdf But they se...
by pmcg521
Tue Jul 18, 2017 11:25 pm
Forum: Device Tree
Topic: Pi3 Core Mailbox Write Addresses
Replies: 3
Views: 1583

Pi3 Core Mailbox Write Addresses

I need to know the start addresses for each CPU core's "mailbox" in the Pi3. I have tried using those for the Pi2, (the core addresses were as follows): core 1: 0x4000009C core 2: 0x400000AC core 3: 0x400000BC source (page 7): https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2836/QA...
by pmcg521
Thu Jul 06, 2017 2:54 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

Fixup.dat got it to spit out the correct memory! 989855744 bytes physical memory. [0x00000000 to 0x3AFFFFFF] Dropped these files from rpi firmware github into the root directory: fixup.dat, fixup_cd.dat, fixup_db.dat, fixup_x.dat, and start_cd.elf, start_db.elf, start_x.elf (including start.elf). Th...
by pmcg521
Fri Jun 30, 2017 10:57 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

Thanks for the info! I'll test out the firmware's start.elf with the corresponding fixup.dat and put the results here asap
by pmcg521
Fri Jun 30, 2017 9:50 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

^ with that, is there a Pi3-specific fixup.dat? And does fixup.dat replace start.elf?
by pmcg521
Thu Jun 29, 2017 7:19 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

My ATAG_MEM sure does look different than yours. These are the definitions of the ARM boot tags that I used in the last implementation (it worked well then, but not now): ATAG_NONE = 0x00000000, /* End of ATAG list. */ ATAG_CORE = 0x54410001, /* Start of ATAG list. */ ATAG_MEM = 0x54410002, /* Used ...
by pmcg521
Wed Jun 28, 2017 5:02 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

PhilE, thank you for your consistent, quick replies. I passed the ATAGS at 0x100 and they are now being passed and parsed. However, I am stuck at the issue I started with: there is only 0x07FFFFFF (~134MB) of physical memory available. It seems that there is no way around this, as this value of 134M...
by pmcg521
Tue Jun 27, 2017 8:15 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

Have you tried with "device_tree="? You didn't say. We've been relying on Device Tree for a few years now, but I had thought ATAGs were still possible. Yep, device_tree= is in my config.txt. This is in my file that handles atags: /* Format of ARM boot tag */ struct atag { struct atag_header hdr; un...
by pmcg521
Tue Jun 27, 2017 7:54 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

I'm glad I asked - that method has been replaced by a more user-friendly version. To enter an OS in AArch64 mode, all you need to do is name your OS boot file kernel8.img - the loader will load this in preference to kernel7.img on a Pi3. If you would rather identify your OS image explicitly using "...
by pmcg521
Mon Jun 26, 2017 7:02 pm
Forum: Device Tree
Topic: ATAGS in the 64-bit Pi3
Replies: 24
Views: 4430

Re: ATAGS in the 64-bit Pi3

PhilE wrote:While you are waiting for me to get to a keyboard, can you say what you have in config.txt?

Code: Select all

arm_control=0x200
Which commands it to boot into Aarch64 mode.

Go to advanced search