Go to advanced search

by cleverca22
Wed Aug 04, 2021 4:02 am
Forum: Raspberry Pi OS
Topic: What about a keypress-enabled rescue micro-AP feature?
Replies: 25
Views: 692

Re: What about a keypress-enabled rescue micro-AP feature?

root@pi4:~# cat /sys/class/net/wlan0/device/modalias sdio:c00v02D0dA9A6 root@pi4:~# modinfo sdio:c00v02D0dA9A6 filename: /lib/modules/5.10.52-v8+/kernel/drivers/net/wireless/broadcom/brcm80211/brcmfmac/brcmfmac.ko alias: sdio:c*v02D0dA9A6* root@pi4:~# vcgencmd otp_dump | egrep '30:|28:' 28:d328cdce...
by cleverca22
Wed Aug 04, 2021 3:17 am
Forum: C/C++
Topic: Reading GPIO Registers on a Raspberry Pi from C or C++
Replies: 7
Views: 233

Re: Reading GPIO Registers on a Raspberry Pi from C or C++

So correct me if im misunderstanding. 0x7e200000 is the address in physical memory for the chip (in my case the BCM2711). 0xfe000000 is the adress it will be mapped to in virtual memory always when mmap is called on the pi. 7e is in the vpu space, which is a new space you dont see on any other syst...
by cleverca22
Wed Aug 04, 2021 3:15 am
Forum: General discussion
Topic: 2 services off the same code on boot?
Replies: 7
Views: 132

Re: 2 services off the same code on boot?

deepo wrote:
Tue Aug 03, 2021 7:42 pm
You can see from the ps command that the first process has number 952, while the second has 954 (started by 952).
you can also run `ps -eH x` or `pstree` to see the actual parent/child relationships
by cleverca22
Tue Aug 03, 2021 2:44 pm
Forum: SDK
Topic: Timing a function's execution time.
Replies: 5
Views: 125

Re: Timing a function's execution time.

and systick can be configured to count at clk_sys, the same clock driving the arm core

so if you use systick, you can get an exact clock cycle count, then just divide with your clock, to see how long it takes, giving you much better resolution, and the ability to predict the time at different clocks
by cleverca22
Tue Aug 03, 2021 1:58 pm
Forum: General discussion
Topic: 2 services off the same code on boot?
Replies: 7
Views: 132

Re: 2 services off the same code on boot?

also, rc.local always runs as root, so the sudo there is pointless
by cleverca22
Tue Aug 03, 2021 1:21 pm
Forum: C/C++
Topic: Reading GPIO Registers on a Raspberry Pi from C or C++
Replies: 7
Views: 233

Re: Reading GPIO Registers on a Raspberry Pi from C or C++

internally, the GPIO is at 0x7e200000 in the VPU space on the pi0/pi1, that whole 16mb block at 0x7e00_0000 is mapped to 0x2000_0000 on the arm physical space on the pi2/pi3, its mapped to 0x3f00_0000 and on the pi4, its mapped to 0xfe00_0000 the functions in https://www.raspberrypi.org/documentatio...
by cleverca22
Tue Aug 03, 2021 7:11 am
Forum: Compute Module
Topic: CM4 very slow from power-on to kernel start time
Replies: 20
Views: 417

Re: CM4 very slow from power-on to kernel start time

6by9 wrote:
Tue Aug 03, 2021 6:18 am
The firmware already configures a simple-framebuffer node if FKMS or KMS are enabled.
ah, perfect!, i need to take a closer look at how it all behaves on the latest raspi-os
by cleverca22
Tue Aug 03, 2021 12:49 am
Forum: C/C++
Topic: Reading GPIO Registers on a Raspberry Pi from C or C++
Replies: 7
Views: 233

Re: Reading GPIO Registers on a Raspberry Pi from C or C++

volatile const int *initialMemory = 0x7e200000; that is the wrong address you need to map it from 0x7e to something else, that is model specific https://www.raspberrypi.org/documentation/hardware/raspberrypi/peripheral_addresses.md and then its a physical addr, but your dealing with virtual, so you...
by cleverca22
Tue Aug 03, 2021 12:27 am
Forum: Troubleshooting
Topic: won't boot after clone
Replies: 24
Views: 486

Re: won't boot after clone

All this said... I just made another clone with the same USB drive... same image and... it works like a charm. No delete etc of the hidden/extra directory. So really, I had some problem.. I have not figured it out what. Perhaps dd is having an issue? Because I did switch to Etcher and all seems goo...
by cleverca22
Mon Aug 02, 2021 10:59 pm
Forum: Troubleshooting
Topic: Strange partition setup after flash to NVME USB drive
Replies: 10
Views: 229

Re: Strange partition setup after flash to NVME USB drive

either find an x86 machine, or find an nvme drive with 512 byte sectors by default

thats all i can think of
by cleverca22
Mon Aug 02, 2021 10:58 pm
Forum: Compute Module
Topic: CM4 very slow from power-on to kernel start time
Replies: 20
Views: 417

Re: CM4 very slow from power-on to kernel start time

one thing ive thought about uboot could configure the mailbox framebuffer, for its own logs/splash but then pass the address of that framebuffer to linux as a simple framebuffer that is tied to the (f)kms nodes in DT linux will use the simple-framebuffer initially, until it finds the kms modules on ...
by cleverca22
Mon Aug 02, 2021 10:52 pm
Forum: Troubleshooting
Topic: Strange partition setup after flash to NVME USB drive
Replies: 10
Views: 229

Re: Strange partition setup after flash to NVME USB drive

you need to run smartctl to see if it even can be reconfigured

plug the nvme drive into the pcie bus of any linux machine, and then you can run smartctl
by cleverca22
Mon Aug 02, 2021 9:39 am
Forum: Compute Module
Topic: CM4 very slow from power-on to kernel start time
Replies: 20
Views: 417

Re: CM4 very slow from power-on to kernel start time

I managed to shave almost a second off the boot time recently, (so grab the latest firmware from our firmware repo) but I can't see it getting much better than that - the memory PHY setup is lengthy. Indeed. The RAM setup won't get any faster. ive heard that x86 systems push it faster, by saving th...
by cleverca22
Mon Aug 02, 2021 9:28 am
Forum: Gaming
Topic: Is there an Xbox 360 emulator for raspberry pi
Replies: 24
Views: 905

Re: Is there an Xbox 360 emulator for raspberry pi

ah, that might be the 2nd rev i pasted above, 0x04000161

related, will the official firmware have a higher default arm_freq for C0 pi4's, like the pi400? (but obviously not as high, due to a lack of heatsink)

what is patched in the DT, so a user can detect it?
by cleverca22
Mon Aug 02, 2021 8:37 am
Forum: Gaming
Topic: Is there an Xbox 360 emulator for raspberry pi
Replies: 24
Views: 905

Re: Is there an Xbox 360 emulator for raspberry pi

Gavinmc42 wrote:
Mon Aug 02, 2021 7:37 am
Once it's buried under a heatsink or in a case, how to tell it's a C0?
jamesh wrote:
Mon Aug 02, 2021 8:33 am
They are pin compatible, so the C0 can go on the 1.4 rev no problem, and does.
does that mean that the C0's are still rev 1.4?, how do you tell the difference from a purely software perspective?
by cleverca22
Mon Aug 02, 2021 7:12 am
Forum: Gaming
Topic: Is there an Xbox 360 emulator for raspberry pi
Replies: 24
Views: 905

Re: Is there an Xbox 360 emulator for raspberry pi

Gavinmc42 wrote:
Mon Aug 02, 2021 7:04 am
"cat /proc/cpuinfo" does the same thing.
Revision d03114, which just means Pi4 8GB rev 1.4 PCB
That's documented in the revision pages.
when running the rpi fork of linux, yeah

there is a recent thread about it being missing, due to running mainline linux instead
by cleverca22
Mon Aug 02, 2021 6:55 am
Forum: Gaming
Topic: Is there an Xbox 360 emulator for raspberry pi
Replies: 24
Views: 905

Re: Is there an Xbox 360 emulator for raspberry pi

https://www.raspberrypi.org/documentation/hardware/raspberrypi/README.md No info on the BCM2711C0 like the BCM2837B0 And the revision numbers don't spell it out either. Not sure how the software can tell. The boot eprom must know as the PCIe stuff is different on the CM4? there are 2 pieces of revi...
by cleverca22
Mon Aug 02, 2021 5:18 am
Forum: Compute Module
Topic: Feasibility of CM4 based Framework motherboard
Replies: 11
Views: 332

Re: Feasibility of CM4 based Framework motherboard

for the usb-c ports, you basically just need 2 layers 1: any pcie<->usb3 chip (several threads already exist on finding one to use) 2: some usb3<->usbc chips, because if you insert a usb-c cable "backwards" the usb3 lanes are cross-wired, and you need to un-cross them a pcie<->usb3 chip wi...
by cleverca22
Mon Aug 02, 2021 5:07 am
Forum: Gaming
Topic: Is there an Xbox 360 emulator for raspberry pi
Replies: 24
Views: 905

Re: Is there an Xbox 360 emulator for raspberry pi

Any way to tell if the newer 8GB is C0 without opening up again? Once all the B0's are flushed, will the specs/default speeds change? dont have any confirmations, but i would assume it could get a new revision# to identify it and if the firmware detects that newer revision, it could (in theory) jus...
by cleverca22
Mon Aug 02, 2021 3:40 am
Forum: Gaming
Topic: Is there an Xbox 360 emulator for raspberry pi
Replies: 24
Views: 905

Re: Is there an Xbox 360 emulator for raspberry pi

Not really into games but a 2GHz overclocked Pi400 might be better than Pi4. the C0T rev from the pi400 is starting to go into the pi4 line, so with a proper heatsink, the pi4 should now be able to get the same overclocks as a pi400 but you have the usual issues of flushing the old revisions out of...
by cleverca22
Mon Aug 02, 2021 3:06 am
Forum: Arch
Topic: Arch Linux on Pi3 refusing to boot unless hdmi connected
Replies: 23
Views: 652

Re: Arch Linux on Pi3 refusing to boot unless hdmi connected

skypi wrote:
Mon Aug 02, 2021 1:34 am
having dissed arch so much, think i might have a crack at gentoo (and a read of linux from scratch) LOL
having run gentoo and LFS for years, nixos is a far better alternative, once you can get over the learning curve
by cleverca22
Mon Aug 02, 2021 12:04 am
Forum: Troubleshooting
Topic: Strange partition setup after flash to NVME USB drive
Replies: 10
Views: 229

Re: Strange partition setup after flash to NVME USB drive

[root@amd-nixos:~]# smartctl -a /dev/nvme0n1 Supported LBA Sizes (NSID 0x1) Id Fmt Data Metadt Rel_Perf 0 + 512 0 0 this command can query an nvme drive, and list what block sizes it supports, and the relative performance differences in my case, its 512 only your usb adapter may also block those co...
by cleverca22
Sun Aug 01, 2021 11:21 pm
Forum: Troubleshooting
Topic: Strange partition setup after flash to NVME USB drive
Replies: 10
Views: 229

Re: Strange partition setup after flash to NVME USB drive

Unfortunately it still doesn’t boot from the NVME drive with the same “Unsupported block size error”. But it has mounted the drive properly and I can see the partition tables look better in Gparted. the rpi bootloader/firmware only support 512 byte sectors you either need to re-configure the nvme d...
by cleverca22
Sun Aug 01, 2021 11:06 pm
Forum: Compute Module
Topic: CM4 very slow from power-on to kernel start time
Replies: 20
Views: 417

Re: CM4 very slow from power-on to kernel start time

PhilE wrote:
Sun Aug 01, 2021 4:51 pm
the memory PHY setup is lengthy.
the recovery.bin recently gained a ram test function, and a new blink error code for bad ram
the code for that ram setup seems far simpler, are you able to reveal what its missing and why its so much simpler?
by cleverca22
Sun Aug 01, 2021 4:19 pm
Forum: Compute Module
Topic: CM4 very slow from power-on to kernel start time
Replies: 20
Views: 417

Re: CM4 very slow from power-on to kernel start time

a few things of note to help with the debug 1: if you set BOOT_UART=1 in the bootconf.txt of the SPI flash, the bootloader will print logs to the serial port (gpio 14/15) at 115200 baud the logs dont include any timestamps, so youll need a terminal client that timestamps things for you 2: if you set...

Go to advanced search