On Tuesday 29 October 2019 11:15:34 Thomas J Powderly wrote: > Gene, Hello, > Andy Pugh has written up the hal_pi_gpio.c for branch 2.8. > > ||/||/ > > On 10/28/19 1:58 PM, Gene Heskett wrote: > > On Sunday 27 October 2019 07:08:30 Andy Pugh wrote: > >>> On 27 Oct 2019, at 05:39, Tim March <[email protected]> wrote: > >>> > >>> The revision # can be different depending on where it was > >>> manufactured. > >> > >> I will run it with my own Pi4 to get some numbers, but if you have > >> more? > > > > Andy, I ran the stuff TomP referred to in a PM with a link, and got > > this from a 2 gig rpi4:pinout > > pi@rpi4:/etc/apt/sources.list.d $ pinout > > ,--------------------------------. > > > > | oooooooooooooooooooo J8 +====== > > | 1ooooooooooooooooooo PoE | Net > > | Wi oo +====== > > | Fi Pi Model 4B V1.1 oo | > > | ,----. +==== > > | > > | |D| |SoC | |USB3 > > | |S| | | +==== > > | |I| `----' | > > | | > > | |C| +==== > > | |S| |USB2 > > | > > | pwr |HD| |HD| |I||A| +==== > > > > `-| |---|MI|---|MI|----|V|-------' > > > > Revision : b03111 > > SoC : BCM2711 > > RAM : 2048Mb > > Storage : MicroSD > > USB ports : 4 (excluding power) > > Ethernet ports : 1 > > Wi-fi : True > > Bluetooth : True > > Camera ports (CSI) : 1 > > Display ports (DSI): 1 > > > > J8: > > 3V3 (1) (2) 5V > > GPIO2 (3) (4) 5V > > GPIO3 (5) (6) GND > > GPIO4 (7) (8) GPIO14 > > GND (9) (10) GPIO15 > > GPIO17 (11) (12) GPIO18 > > GPIO27 (13) (14) GND > > GPIO22 (15) (16) GPIO23 > > 3V3 (17) (18) GPIO24 > > GPIO10 (19) (20) GND > > GPIO9 (21) (22) GPIO25 > > GPIO11 (23) (24) GPIO8 > > GND (25) (26) GPIO7 > > GPIO0 (27) (28) GPIO1 > > GPIO5 (29) (30) GND > > GPIO6 (31) (32) GPIO12 > > GPIO13 (33) (34) GND > > GPIO19 (35) (36) GPIO16 > > GPIO26 (37) (38) GPIO20 > > GND (39) (40) GPIO21 > > > > For further information, please refer to https://pinout.xyz/ > > > > > > At the bottom of /proc/cpuinfo: > > > > Hardware : BCM2835 > > Revision : b03111 > > Serial : 100000004adfced0 > > Model : Raspberry Pi 4 Model B Rev 1.1 > > Note that one command identifies your RPi4 SOC as BCM2835 > I don't think so. Isn't the 2711 the core of the gpio stuff, and the 2835 is the core of the SOC including the gfx. It may be all under the same tin roof on the same die but is separated by whatever bus is used internally.
> and another reports BCM2711 ( the correct answer ). Which is the gpio stuffs. AIUI. Which is at a different base address than the 2709 used in the pi3's. > > And I got a repeat of the last line above for > > cat /proc/device-tree/model. That doesn't contain memory provided in > > the revision number though. > > > > Is this data that you are looking for? > > > > Are you working on making a gpio parport? If you are, are you > > intending to make it work with the 7i76 and its cousins sserial > > expansions? That would be kewl if its fast enough to pull that off. > > I didn't find that even a 1 gig pi3 has problems building linuxcnc > > after I'd made a 10 gig swap on a 120gb ssd and added it to > > /etc/fstab. Building linuxcnc on the pi3 ran it around 85 megs into > > swap, and when that ssd was moved to the pi4 with 2 gigs, it used > > about 50 megs to build the rs274 interpreter. But the faster usb-3 > > interface on the pi4 sped up the build considerably. Well under an > > hour. > > > > Cheers, Gene Heskett > > In your build and in your boot command, is there any mention of the > dto or dtb? > ( device tree overlay / device tree binary ) > > > > Did you build for 32 or 64bit? armhf, 32 bit has a faster context switch than 64 bit by a factor of 2. Better latency. > > The boot command might mention the dtb. > The dtb for RPi4 would be *the 64 bit version of bcm2711-rpi-4-b.dtb* If running a full 64 bit install, but raspbian's buster is armhf where debian buster using the netinstall is arm64. What you install in /boot/dtbs comes in this case from arch/arm/boot if you follow the recipe, and its built for armhf in that directory of the kernel src. Unforch that recipe is laying on the lathe ATM so I can't quote it from memory. The file labeled zImage in this directory is copied over the /boot/kernel7l.img is about all I can recall 19 days later. > I think the build command would likely have '|bcm2711_defconfig' in > it, not 'bcm2835'.| > > oh, to make things even easier to understand , BCM2838 is another name > for BCM2711 (groan). > I am still chewing on > https://andrei.gherzan.ro/linux/raspbian-rpi4-64/ > > Also, for users wanting to use stepgens connected to gpio pins, > > we dont have the 'double-step' trick thats inside hal_parport. > > (hal_parport’s auto-resetting pins) > > I think I was told it's possible to get higher step-rates using a > different stepgen type, > that this other stepgen type was effectively same as Jepler's > 'double-step'. but I haven't found that email yet. > > > TomP No diff to me, I'm useing a mesa 7i90HD interface, buffered by three 7i42TA's which protect the 7i90HD from noise and supply the little green screw terminals, about a million times easier to get reliable hookups. Thats a much too big pile of sheckles, but it sure works nice. > It will take a while, but you can get my whole kernel build, as built, all you have to do is install it, from the link in my sig, adding lathe-stf/linuxcnc4rpi4 to the address bar. Not visible from the base web page decorated by a now 15 year old pix of me & the missus. LinuxCNC in 2.9.0-pre flavor as it existed a couple weeks ago is also there as debs. All that was built right on that 2G pi4, with an extra 10GB of swap on an ssd, and a 240 meg ssd for a workspace. I have had a usb3 to sata cable failure. Replaceing the adapter found a good ssd again. 10GB of swap is serious overkill, but I got tired of the OOM killing my linuxcnc build in the middle of the rs274 interpreter. Using 100 megs worth of the u-sd boot card for a swap file was idiocy anyway, it just makes the boot card self destruct faster. So see /etc/fstab for instructions as to how to turn that swap file off. dphys-swapfile swapoff does it, and htop sill shows 9.4GB of swap available. Cheers, Gene Heskett -- "There are four boxes to be used in defense of liberty: soap, ballot, jury, and ammo. Please use in that order." -Ed Howdershelt (Author) If we desire respect for the law, we must first make the law respectable. - Louis D. Brandeis Genes Web page <http://geneslinuxbox.net:6309/gene> _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
