Go to advanced search

by cleverca22
Wed May 12, 2021 6:03 pm
Forum: Beginners
Topic: Bare metal systems on Pi4B: no starrt only message START.ELF IS NOT COMPATIBLE
Replies: 3
Views: 38

Re: Bare metal systems on Pi4B: no starrt only message START.ELF IS NOT COMPATIBLE

yeah, the error is stating that the start.elf file on the card is too old

but a pi4 should be using start4.elf, so its likely the SD card was meant for a pi3 or older

youll need to put in a recent start4.elf and fixup4.dat, and then it can boot a little further
by cleverca22
Wed May 12, 2021 3:23 pm
Forum: General
Topic: Partition the internal flash?
Replies: 4
Views: 128

Re: Partition the internal flash?

May work, but not very viable. ATM I have 37 binary blobs in sizes between 128B and 32kB, number growing. So I thought about a littleFS at an flash address until the end. Do you think this is the right approach? Maybe writing a program which runs on pico and copies these files from a Fat SD card to...
by cleverca22
Wed May 12, 2021 3:22 pm
Forum: Troubleshooting
Topic: Pico make Pi go big >KABOOM<
Replies: 3
Views: 104

Re: Pico make Pi go big >KABOOM<

[80125.132549] [<7f205260>] (acm_submit_read_urb [cdc_acm]) from [<7f2070b0>] (acm_submit_read_urbs.constprop.3+0x3c/0x58 [cdc_acm]) [80125.132562] r7:a4960000 r6:a4960438 r5:a4960000 r4:00000001 i have heard that the acm driver has a number of race conditions, and can crash in various ways, if the...
by cleverca22
Tue May 11, 2021 11:15 pm
Forum: General discussion
Topic: h265 encoding speed
Replies: 1
Views: 62

Re: h265 encoding speed

the pi4 only has h265 decode accel

the h264 stuff (non-4k video) still has encode+decode though
by cleverca22
Tue May 11, 2021 10:43 pm
Forum: Automation, sensing and robotics
Topic: Figuring out my setup needed
Replies: 12
Views: 284

Re: Figuring out my setup needed

You cannot use a USB hub with a Zero(W) to have USB devices connected to the Zero(W) and operate in gadget mode. correct if you put the HOST side of a hub onto the pi0, then it can only run in HOST mode, and connect to other DEVICES but if you put it on the DEVICE side of the hub onto the pi0, it c...
by cleverca22
Tue May 11, 2021 7:38 pm
Forum: C/C++
Topic: C++ functions to retrieve and set IPs a/o SSIDs in the local home network?
Replies: 25
Views: 615

Re: C++ code to retrieve and set IPs a/o SSIDs in the local home network?

mhmmm, and what is the function out() for? I assumed this was it which does the print out (admittedly I don't understand anything of all that nested and obfuscated code... ) the send() function needs the length of a the thing to send writing send(fd,"foo",strlen("foo")); makes t...
by cleverca22
Tue May 11, 2021 7:12 pm
Forum: C/C++
Topic: C++ functions to retrieve and set IPs a/o SSIDs in the local home network?
Replies: 25
Views: 615

Re: C++ code to retrieve and set IPs a/o SSIDs in the local home network?

yes, ok, but where is the entire string of all and everything to parse? I don't see a string wifi_allandeverything; :? printf("received: %s\n", buffer); received: bssid=d8:0d:17:xxx freq=5180 ssid=TP-LINK_Extender_5GHz id=0 mode=station pairwise_cipher=CCMP group_cipher=TKIP key_mgmt=WPA2...
by cleverca22
Tue May 11, 2021 6:24 pm
Forum: SDK
Topic: How to use flash as an EEPROM replacement?
Replies: 5
Views: 147

Re: How to use flash as an EEPROM replacement?

1. How to select a 4096 bytes block in flash at a stable address that does not interfere with anything else? there is a __flash_binary_end symbol being generated by the linker scripts, you can put an int at it with "extern uint32_t __flash_binary_end;", then get the addr with &__flash...
by cleverca22
Tue May 11, 2021 6:18 pm
Forum: Beginners
Topic: Delete kernel log / output from "dmesg"?
Replies: 4
Views: 109

Re: Delete kernel log / output from "dmesg"?

there is also "dmesg -w" which will print the buffer, then wait for new things, and print the new things, as they happen

then you dont have to keep clearing it, you can just watch it happen
by cleverca22
Tue May 11, 2021 6:11 pm
Forum: Automation, sensing and robotics
Topic: Figuring out my setup needed
Replies: 12
Views: 284

Re: Figuring out my setup needed

the ethernet gadget works just fine on a hub

the pi0 just needs to be on the device side of the hub, because its acting as a usb device
by cleverca22
Tue May 11, 2021 6:09 pm
Forum: Raspberry Pi 400
Topic: Raspberry Pi 400 replacement motherboard
Replies: 8
Views: 390

Re: Raspberry Pi 400 replacement motherboard

drgeoff wrote:
Tue May 11, 2021 6:06 pm
Something not right somewhere. If the red multimeter lead is really on a ground point then the meter is showing 5 Volts negative.
yeah, now i'm even more confused!

where did that board come from?
is the meter wired up correctly?
by cleverca22
Tue May 11, 2021 6:08 pm
Forum: SDK
Topic: How to convert a double to a C string?
Replies: 16
Views: 370

Re: How to convert a double to a C string?

Yeah, I wouldn't be so sure that snprintf doesn't allocate memory. Have a look at newlib and FreeRTOS : "The most common functions that bite unsuspecting embedded developers are sprintf using %f, dtoa, ftoa, rand, and strtok." I highly recommend mpaland/printf: Tiny, fast, non-dependent a...
by cleverca22
Tue May 11, 2021 6:07 pm
Forum: C/C++
Topic: C++ functions to retrieve and set IPs a/o SSIDs in the local home network?
Replies: 25
Views: 615

Re: C++ code to retrieve and set IPs a/o SSIDs in the local home network?

dsyleixa123 wrote:
Tue May 11, 2021 5:47 pm
any hints by anyone? I don't see how to retrieve and store the required WiFi values in (local arbitrary) program variables
that gets into the subject of parsing a string into multiple pieces, which ive not done very much of

youll need to look into things like scanf or flex/bison i'm guessing
by cleverca22
Tue May 11, 2021 3:31 pm
Forum: SDK
Topic: How to convert a double to a C string?
Replies: 16
Views: 370

Re: How to convert a double to a C string?

snprintf is the usual way to do that
by cleverca22
Tue May 11, 2021 3:00 pm
Forum: Device Tree
Topic: Device Tree for switch on power on indicator
Replies: 11
Views: 221

Re: Device Tree for switch on power on indicator

Ignoring all the potential dangers of encouraging somebody to write to OTP (don't go there), 25ms is a bit short for a user LED. Using the default pull that is later reversed/replaced with an output is a much better option. but if you program it backwards, it will turn it off for 25ms, then turn it...
by cleverca22
Tue May 11, 2021 2:34 pm
Forum: Device Tree
Topic: Device Tree for switch on power on indicator
Replies: 11
Views: 221

Re: Device Tree for switch on power on indicator

Training the SDRAM PHYs and running temperature calibration takes time - 5-6 seconds is the best you can do unless you choose a pin that is always high (e.g. one of the 3.3V pins) or pulls high by default (GPIOs 0-8). OTP 67 0x80 enable bit 0x40 first level 0x3f bitmask for pin# the given pin is se...
by cleverca22
Tue May 11, 2021 1:27 am
Forum: Bare metal, Assembly language
Topic: Enable JTAG in EEPROM on 4B - possible?
Replies: 1
Views: 70

Re: Enable JTAG in EEPROM on 4B - possible?

without a start4.elf file, the pi4 has no way to even turn on the arm core so you must have start4.elf present somewhere (SD, network, usb), or the arm core wont be of any use network boot might be a good option, since you can start out with everybody starting from the same image, but then have peop...
by cleverca22
Tue May 11, 2021 1:15 am
Forum: Raspberry Pi OS
Topic: ping suid permission
Replies: 6
Views: 148

Re: ping suid permission

Modern distros use capabilities instead of setuid. pi@tau:~ $ getcap /bin/ping /bin/ping = cap_net_raw+ep Did you install or copy the root filesystem in an unusual way, that could cause the capability to be omitted? ah, ive got a ~7 year old install i think, so my apt hasnt migrated things to the n...
by cleverca22
Tue May 11, 2021 12:12 am
Forum: Raspberry Pi OS
Topic: ping suid permission
Replies: 6
Views: 148

Re: ping suid permission

root@pi400:~# stat /bin/ping File: /bin/ping Size: 55720 Blocks: 112 IO Block: 4096 regular file Device: b302h/45826d Inode: 3090 Links: 1 Access: (4755/-rwsr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2020-12-02 09:02:04.073953738 -0400 Modify: 2020-01-13 19:29:01.000000000 -0400 Change: 2020-1...
by cleverca22
Mon May 10, 2021 10:28 pm
Forum: General discussion
Topic: STICKY: PINN - An enhanced version of NOOBS.
Replies: 1526
Views: 512914

Re: STICKY: PINN - An enhanced version of NOOBS.

That might be nice, but procount has so much on his plate as it is. You wanna take a crack at it and submit a pull request? if i touch the pinn codebase, i may not stop until ive written it to skip a firmware stage! in theory, pinn could be in a start(4).elf file, and skip the arm core entirely, ma...
by cleverca22
Mon May 10, 2021 9:30 pm
Forum: General discussion
Topic: STICKY: PINN - An enhanced version of NOOBS.
Replies: 1526
Views: 512914

Re: STICKY: PINN - An enhanced version of NOOBS.

I hate to sound like I'm spitting on all the work procount and I did with the pinn_init.conf file, but this literally trivializes the process. i think the biggest improvement procount could do, is auto-generate an autoboot.txt like yours, from a GUI so you just tell pinn what pin should boot into e...
by cleverca22
Mon May 10, 2021 8:32 pm
Forum: Camera board
Topic: Pinky purple stripes and a discontinuity in the image.
Replies: 8
Views: 257

Re: Pinky purple stripes and a discontinuity in the image.

but the hardware has no way to compensate for this lost line, and will interpret the G as B, and the R as G. That sort of swap will generally result in a pink/magenta image. Any white portions of the image will have equal (and probably saturated) red, green, and blue values, so will remain white. i...
by cleverca22
Mon May 10, 2021 7:40 pm
Forum: Automation, sensing and robotics
Topic: Figuring out my setup needed
Replies: 12
Views: 284

Re: Figuring out my setup needed

Reese9885 wrote:
Mon May 10, 2021 7:25 pm
cleverca22 wrote:
Mon May 10, 2021 6:58 pm
have you looked into the pico yet?
A little.. would I use one pico per setup/grouping of devices then connect the picos as a peripheral to a rasberry pi?
that could work, and would be cheaper then a pi0 to each

you may also be able to run several groups off one pico, depending on distances

Go to advanced search