#garfield Logs

Aug 24 2022

#garfield Calendar

07:49 PM polprog: https://www.youtube.com/watch?v=YwAWSQptCCw
07:58 PM polprog: i understood how i can make a voltage controlled resistor
07:58 PM polprog: i just need to get rid of the small V nudge at 0V
07:58 PM polprog: its uh
07:58 PM polprog: i dont know why its there
07:58 PM polprog: could be diode capacitance taking over
07:58 PM polprog: at V>Vth the diode is conducting normally so there is no capacitance
07:58 PM polprog: thats likely it
08:53 PM rue_mohr: :)
08:56 PM Tom_L: not getting far on this iso thing
08:57 PM rue_mohr: whats hanging you up?
08:58 PM Tom_L: boot sector i think
09:01 PM rue_shop3: ? that should be eays tho
09:02 PM Tom_L: https://www.stephenwagner.com/2020/03/21/create-boot-partition-layout-raspberry-pi/
09:02 PM Tom_L: was looking at that for a manual way but that doesn't help the iso at all
09:02 PM Tom_L: i was able to partition the sd the same way a working sd was
09:05 PM Tom_L: getting it on an iso you copy to sd is where i'm stuck
09:05 PM rue_shop3: isos boot from a virtual flopppy
09:06 PM rue_shop3: it can be 2.88M, but its got a boot sector just liek the rest
09:06 PM rue_shop3: I'd expect they load grub on it
09:06 PM Tom_dev: sudo lb config \
09:06 PM Tom_dev: --architecture arm64 \
09:06 PM Tom_dev: --linux-flavours arm64 \
09:06 PM Tom_dev: --debian-installer live \
09:06 PM Tom_dev: --binary-filesystem fat32 \
09:06 PM Tom_dev: --bootloaders grub-legacy \
09:07 PM Tom_dev: --binary-images iso-hybrid \
09:07 PM Tom_dev: --bootstrap-qemu-arch arm64 \
09:07 PM Tom_dev: --bootloaders grub-efi \
09:07 PM Tom_dev: --bootstrap-qemu-static /usr/bin/qemu-arm-static
09:07 PM Tom_dev: doesn't work but does create a good iso
09:07 PM Tom_dev: https://man.cx/lb_config(1)#comments
09:07 PM Tom_dev: options
09:08 PM Tom_L: the goal is to put a bootable debian 11 or 12 on it
09:08 PM rue_shop3: hmm
09:09 PM rue_shop3: I wonder if we can take it apart and see why it doesn't boot
09:09 PM rue_shop3: well
09:09 PM rue_shop3: question, does it TRY to boot?
09:09 PM Tom_dev: git clone https://github.com/LinuxCNC/linuxcnc-live-build live-buil
09:09 PM Tom_dev: if you wanna play
09:09 PM Tom_dev: that should be live-build...
09:09 PM Tom_dev: got clipped off
09:09 PM rue_shop3: I dont have time
09:10 PM rue_shop3: I might have time to help you do it ;)
09:10 PM Tom_dev: http://tom-itx.no-ip.biz:81/~webpage/cnc/live-build/raspberrry_pi_amd64_2nd.jpg
09:10 PM Tom_dev: that's what i get
09:10 PM rue_shop3: ok
09:10 PM rue_shop3: the boot disk is missing from the iso
09:11 PM Tom_dev: yeah but i dunno how to get live build to include it
09:11 PM rue_shop3: polprog, ^^
09:11 PM Tom_dev: the boot option i have available is isolinux
09:11 PM Tom_dev: it's in the bootloaders directory
09:12 PM Tom_dev: been working with a debian developer on this
09:12 PM Tom_dev: he doesn't have time to do it himself but offers help when he can
09:12 PM rue_shop3: what do you see if you take the image and run fdisk -l sldflsdfj
09:12 PM rue_shop3: whatever the disc mounts as
09:12 PM Tom_dev: right now 2 partitions i just made
09:12 PM Tom_dev: i didn't look at the iso sd image
09:12 PM rue_shop3: k, whats it show for them
09:13 PM rue_shop3: yea, we want to see that
09:13 PM rue_shop3: what its building,
09:13 PM Tom_dev: i copied the same layout as a working sd
09:13 PM rue_shop3: the fat partition its trying to boot is missing
09:13 PM rue_shop3: maybe the data just didn't get copied
09:13 PM Tom_dev: it'll take a while but i can burn the iso to the sd and look
09:13 PM Tom_dev: the data is there but it's not bootable
09:14 PM rue_shop3: or from a card, whatever
09:14 PM rue_shop3: or you can run fdisk on the file
09:14 PM rue_shop3: if you have a whole image
09:14 PM Tom_dev: gimme a min
09:14 PM Tom_dev: writing 3.6G to the sd
09:15 PM Tom_dev: then i'll fdisk -l for you
09:15 PM rue_shop3: you CAN just run it on the file your copying
09:15 PM Tom_dev: dunno how
09:15 PM rue_shop3: linux doesn't care
09:15 PM Tom_dev: i know
09:15 PM rue_shop3: instead of specifying a decivce just point it to the file
09:16 PM Tom_dev: i dunno what files to look at
09:16 PM Tom_dev: i know they're in the iso
09:16 PM Tom_dev: ok waiting for the buffer to flush then i'll look
09:16 PM rue_shop3: what are you copoying to the card
09:16 PM rue_shop3: a file, right?
09:16 PM Tom_dev: an iso image
09:16 PM rue_shop3: yea
09:17 PM Tom_dev: that i build containing bookworm
09:17 PM Tom_dev: debian 12
09:17 PM rue_shop3: fdisk -l myfile.iso
09:17 PM Tom_dev: not yet
09:17 PM rue_shop3: it doesnt need to be on the SD card
09:17 PM rue_shop3: it can be anywhere
09:17 PM Tom_dev: Device Boot Start End Sectors Size Id Type
09:17 PM Tom_dev: ./dev/sdd1 8192 532479 524288 256M c W95 FAT32 (LBA)
09:17 PM Tom_dev: ./dev/sdd2 532480 124735487 124203008 59.2G 83 Linux
09:17 PM Tom_dev: that's what i manually wrote to it
09:17 PM rue_shop3: ok good
09:17 PM Tom_dev: but
09:18 PM Tom_dev: that's how a working sd looks too
09:18 PM rue_shop3: so the issue will be that there is no fat filesystem on that first partition
09:18 PM Tom_dev: one sec and i'll look at the sd iso
09:18 PM Tom_dev: i don't think the iso writes the 2 partitions like it should
09:19 PM Tom_dev: and that's where we get back to the live build settings
09:19 PM Tom_dev: i think
09:20 PM Tom_dev: Command (m for help): p
09:20 PM Tom_dev: Disk /dev/sdd: 59.48 GiB, 63864569856 bytes, 124735488 sectors
09:20 PM Tom_dev: Disk model: Storage Device
09:20 PM Tom_dev: Units: sectors of 1 * 512 = 512 bytes
09:20 PM Tom_dev: Sector size (logical/physical): 512 bytes / 512 bytes
09:20 PM Tom_dev: I/O size (minimum/optimal): 512 bytes / 512 bytes
09:20 PM Tom_dev: Disklabel type: dos
09:20 PM Tom_dev: Disk identifier: 0xea8e8403
09:20 PM Tom_dev: that's what the iso sd looks like
09:21 PM Tom_dev: Device does not contain a recognized partition table.
09:21 PM Tom_dev: Created a new DOS disklabel with disk identifier 0xea8e8403.
09:21 PM rue_shop3: hmm
09:22 PM Tom_dev: it's not building the iso to be bootable
09:22 PM Tom_dev: at least i did get a good iso built. that took a while
09:22 PM rue_shop3: hmm
09:23 PM Tom_dev: the idea is to be able to reproduce this to make distributable img files with linuxcnc on them for newer debian versions
09:23 PM rue_shop3: yes
09:23 PM Tom_dev: and i have all that data collected
09:23 PM rue_shop3: now what I'm wondering next is where the images are for the two partitions
09:24 PM Tom_dev: no idea
09:24 PM rue_shop3: that should be written to those partitions
09:24 PM rue_shop3: it'll be burried in some script
09:24 PM Tom_dev: above my paygrade but i _am_ asking for a raise
09:24 PM rue_shop3: :)
09:24 PM rue_shop3: is the whole project built from a directory somewhere
09:25 PM Tom_dev: i figured rue_mohr would just say... OH! do this...
09:25 PM rue_shop3: like /home/tom/lcncbuild/ ?
09:25 PM Tom_dev: yes
09:25 PM rue_shop3: cd to that
09:25 PM Tom_dev: it pulls from debian
09:25 PM rue_shop3: and do a find|grep -i iso
09:25 PM Tom_dev: but the scripts etc are all there
09:26 PM Tom_dev: lots and lots of files
09:27 PM rue_shop3: find|grep -i iso
09:27 PM rue_shop3: ^^ its listing just .iso files?
09:27 PM Tom_dev: lots and lots of files
09:27 PM Tom_dev: no
09:27 PM Tom_dev: anything with 'iso' in it
09:27 PM rue_shop3: we just want .iso files
09:27 PM rue_shop3: uh
09:27 PM rue_shop3: polprog,
09:28 PM rue_shop3: ok try this
09:28 PM rue_shop3: find|grep -i "\.iso"
09:29 PM Tom_dev: no
09:29 PM Tom_dev: does find .iso but also get alot of permission denied
09:29 PM Tom_dev: but the .iso is in the middle of the filenames
09:30 PM Tom_dev: not sure where you're going with this
09:30 PM rue_shop3: there should be two isos in there
09:30 PM rue_shop3: one for hte dos partition and one for hte linux partition
09:31 PM rue_shop3: their sub-images
09:31 PM rue_shop3: its possible they did it different
09:32 PM Tom_dev: https://github.com/LinuxCNC/linuxcnc-live-build
09:33 PM rue_shop3: I dont have time for it
09:33 PM rue_shop3: sorry
09:33 PM Tom_dev: np
09:33 PM rue_shop3: I'm in the middle of a run trying to make a servo
09:33 PM Tom_dev: go forth and build sheds...
09:33 PM rue_shop3: hah
09:33 PM rue_shop3: the first one has to sell first :S
09:34 PM Tom_dev: there was another link but i'm not finding it now
09:39 PM rue_shop3: the iso is made of 2 partitions
09:39 PM rue_shop3: one of them is a linux boot disk, back like we had with floppies
09:39 PM rue_shop3: the other is just a linux filesystem
09:39 PM Tom_dev: yeah
09:40 PM rue_shop3: it sounds like the disk image isn't there
09:40 PM rue_shop3: the dos one
09:40 PM Tom_dev: gonna fdisk the iso now
09:41 PM Tom_dev: Device does not contain a recognized partition table.
09:41 PM Tom_dev: Created a new DOS disklabel with disk identifier 0xd1078919.
09:41 PM Tom_dev: Command (m for help): p
09:41 PM Tom_dev: Disk /home/tom/live-build/LinuxCNC_2.8.2-arm64.hybrid.iso: 3.24 GiB, 3474124800 bytes, 6785400 sectors
09:41 PM Tom_dev: Units: sectors of 1 * 512 = 512 bytes
09:41 PM Tom_dev: Sector size (logical/physical): 512 bytes / 512 bytes
09:41 PM Tom_dev: I/O size (minimum/optimal): 512 bytes / 512 bytes
09:41 PM Tom_dev: Disklabel type: dos
09:41 PM Tom_dev: Disk identifier: 0xd1078919
09:43 PM Tom_dev: http://tom-itx.no-ip.biz:81/~webpage/cnc/live-build/iso_file.png
09:44 PM Tom_dev: directory list
09:44 PM rue_shop3: ah you didn't run it with -l
09:45 PM rue_shop3: hmm
09:45 PM Tom_dev: Disk /home/tom/live-build/LinuxCNC_2.8.2-arm64.hybrid.iso: 3.24 GiB, 3474124800 bytes, 6785400 sectors
09:45 PM Tom_dev: Units: sectors of 1 * 512 = 512 bytes
09:45 PM Tom_dev: Sector size (logical/physical): 512 bytes / 512 bytes
09:45 PM Tom_dev: I/O size (minimum/optimal): 512 bytes / 512 bytes
09:45 PM Tom_dev: same thing but less
09:45 PM rue_shop3: yea same thing, dont have to deal with the propmpy
09:45 PM rue_shop3: ok
09:45 PM rue_shop3: you know whats odd
09:46 PM Tom_dev: yeah, me trying to do this at all
09:46 PM rue_shop3: is that, to my knowledge, the max size for the dos disk is 2.88M
09:46 PM Tom_dev: fat32
09:46 PM Tom_dev: was the compiler switch iirc
09:46 PM rue_shop3: yes
09:46 PM rue_shop3: the cd is a composite image with a dos disk and a cd
09:47 PM rue_shop3: the max size for the disk, to my knowledge is 2.88m
09:47 PM rue_shop3: you had 256m
09:48 PM rue_shop3: there might be new stuff I dont know about
09:48 PM rue_shop3: polprog, would probably know
09:48 PM rue_shop3: afk!
09:49 PM rue_shop3: :P I'm trying to remember how to program an avr
09:49 PM Tom_dev: well i may take a break from it for a while. i seem to be getting nowhere
09:49 PM rue_shop3: the scripts they use dont help
09:49 PM rue_shop3: cause they obfiscate the process
09:50 PM Tom_dev: no but you can build an i386 or amd64 bootable iso
09:50 PM Tom_dev: this was a takeoff from that
09:50 PM Tom_dev: had problems with armhf (32bit) so i went with arm64
09:51 PM Tom_dev: dependencies missing etc
09:51 PM Tom_L: damn. it's bedtime already
09:53 PM rue_shop3: time flies
09:53 PM rue_shop3: making off with your time
09:59 PM Tom_L: just a project to pass the time
10:23 PM rue_mohr: I kinda got a brushed motor to step...