**** BEGIN LOGGING AT Tue Sep 20 02:59:56 2022 Sep 20 12:51:16 Hello guys, I am interested in Beaglebone64 AI board. I did some research on TI's website. There are some examples about using the Accelerators. Will I be able to follow the instructions there and replicate it on Beaglebone AI. Alternatively are there any examples from beaglebone community? Sep 20 13:05:45 Seems like no one is here Sep 20 16:55:32 hello guys. Anyone here using beaglebone AI-64 for robotics? Sep 20 18:01:52 Good evening Sep 20 18:02:12 zmatt I'll be working on the safe emmc (slc and safe write flag Sep 20 18:02:37 do i need to recompile the kernel ? Sep 20 18:04:50 no Sep 20 18:05:06 the kernel has nothing to do with it Sep 20 18:05:16 it's purely an eMMC-internal setting Sep 20 18:05:33 i shall just format, but there's emmc utils to recompile then Sep 20 18:06:48 the one which supports safe write, if i get it right that's not possible with default emmc, there's one on your git which support sit Sep 20 18:07:30 Boot for microsd and reformat emmc with this flag on, is it correct ? Sep 20 18:10:14 jfsimon1981: iirc it's possible to use standard mmc-utils to do the reconfiguration, but the process then requires multiple steps, some of which depend on parameters you need to query, and is tricky and error-prone. since "one-time-programmable irreversible configuration" and "error-prone" are not a good combination, I created a added a custom command to mmc-utils Sep 20 18:11:00 ok Sep 20 18:11:26 Do you think one time programmabe means only at format time ? or one for entire emmc life ? Sep 20 18:11:37 for the entire eMMC life Sep 20 18:11:51 there is no way to undo this Sep 20 18:12:05 oh so basically at factory they don't do it, it can be done but not way back Sep 20 18:12:43 ok, did you check this with manufacturer of that's just clear to you the way datasheet says it ? Sep 20 18:13:07 it's how the eMMC specification is written Sep 20 18:13:11 ok Sep 20 18:14:07 anyway, boot from sd card, and then "mmc reliable-slc-configuration /dev/mmcblk1" (where mmc is the util built from my repo) Sep 20 18:14:20 and then power-cycle the beaglebone (reboot does not suffice) Sep 20 18:14:28 ok pretty clear Sep 20 18:15:01 this is the mmc which i shall compile from your git source then right ? Sep 20 18:15:17 that's what I just said: "where mmc is the util built from my repo" Sep 20 18:15:39 yes Sep 20 18:15:42 i'm sorry got it Sep 20 18:16:00 it will help me sleep at night Sep 20 18:16:03 and just to be clear, this reconfiguration into SLC mode causes 50% reduction in storage space Sep 20 18:16:15 we are at serial number 7 but that's gonna grow Sep 20 18:16:28 yes sure Sep 20 18:17:57 i'll try for next batch Sep 20 18:17:58 thank you Sep 20 20:43:37 anyone in here know crosstool-ng pretty well? Sep 20 20:43:49 I have an offtopic question Sep 20 20:45:47 I've used it a few ages ago, wouldn't say I know it well though Sep 20 20:46:16 i think im missing a basic logical question about it.. trying to build a toolchain for a machine that currently doesnt have one Sep 20 20:46:45 its the same arch, but differeent glibc and everything else. so I think I need to do a "cross-native" build Sep 20 20:47:19 build once a cross, then build again, using the cross to make the native Sep 20 20:47:31 for the life of me I can't understand how to use crosstools-ng to do this Sep 20 20:48:11 oh I've only ever used it for building cross-toolchains, not for cross-building a native toolchain Sep 20 20:48:22 yeah i think that's simpler Sep 20 20:53:09 its maddening i understand conceptually but can't make sense of the tool Sep 20 20:55:28 I mean, clearly it supports doing it: https://crosstool-ng.github.io/docs/toolchain-types/ Sep 20 20:56:41 I guess just examine one of the canadian-cross examples? Sep 20 21:07:43 there seems to be a variable CT_HOST that needs setting Sep 20 21:07:59 just like with the kernel, its always tricky to find that in the menu Sep 20 21:09:04 zmatt Sep 20 21:09:14 ok i'm /msg NickServ IDENTIFY jfsimon1981 charly00 Sep 20 21:09:25 hays: looking at samples/x86_64-w64-mingw32,arm-cortexa9_neon-linux-gnueabihf/crosstool.config ... it seems pretty simple? Sep 20 21:09:30 I'm building it Sep 20 21:09:45 jfsimon1981: and apparently you're also changing your nickserv password :P Sep 20 21:10:04 One thing i have to pass through disabling the Werror flag, won't get through otherwise Sep 20 21:10:07 In file included from /usr/include/string.h:494, Sep 20 21:10:07 from lsmmc.c:46: Sep 20 21:10:07 In function ‘strncpy’, Sep 20 21:10:07 inlined from ‘read_file’ at lsmmc.c:356:3: Sep 20 21:10:08 ncpy’ accessing 4096 bytes at offsets 0 and 1 overlaps 4095 bytes at offset 1 [-Wrestric Sep 20 21:10:10 t] Sep 20 21:10:12 return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest)); Sep 20 21:10:14 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Sep 20 21:10:29 jfsimon1981: don't paste multi-line stuff into chat, use a paste service like pastebin Sep 20 21:10:35 Appart from that seems good Sep 20 21:11:07 Yes that's one error in lsmmc.c Sep 20 21:11:17 jfsimon1981: btw, consider enabling sasl in your irc client: https://libera.chat/guides/sasl Sep 20 21:11:45 yes Sep 20 21:12:11 that gets rid of the identify you mean Sep 20 21:12:33 Will try the mmc command now Sep 20 21:14:21 I guess I should probably rebase my patches on top of the latest upstream version of mmc-utils... I might do that later, right now I've got something more important to do: eat pizza Sep 20 21:16:23 Seemt to be done Sep 20 21:16:54 setting OTP PARTITION_SETTING_COMPLETED! Sep 20 21:17:04 All right Sep 20 21:17:21 Power cycle & check it Sep 20 21:22:00 zmatt: simple? heh I think maybe I just need to figure out how to set CT_HOST Sep 20 21:22:20 but we shall see Sep 20 21:22:50 what do you mean? it's just a config var like any other Sep 20 21:22:55 don't forget to also enable CT_CANADIAN=y Sep 20 21:23:24 (since it views cross-native as a special case of a canadian cross) Sep 20 21:23:31 right Sep 20 21:23:42 then i guess i can go into menuconfig and make additional tweaks Sep 20 21:24:44 matt, after the emmc process i should format to make it work ? Sep 20 21:24:45 CANADIAN should also be somewhere in menuconfig Sep 20 21:24:52 that one is easy to find Sep 20 21:24:58 CT_HOST is not obvious Sep 20 21:25:03 at least to me Sep 20 21:25:24 right now (re)building the first step Sep 20 21:25:25 like partition and format right ? Sep 20 21:25:42 jfsimon1981: after doing the otp config and power-cycling, the eMMC will be completely wiped Sep 20 21:25:59 ok Sep 20 21:26:39 so yeah, you'll need to create a partition, e.g.: echo 'start=8192,bootable' | sfdisk /dev/mmcblk1 Sep 20 21:27:00 or, well, that's part of the typical process of flashing Sep 20 21:27:11 thank you Sep 20 21:27:19 like, after doing this you just reflash the eMMC as usual Sep 20 21:27:30 right Sep 20 21:29:57 hays: HOST should appear in the toolchain config menu after you enable CANADIAN Sep 20 21:30:32 Now we can't use the 4G flash image Sep 20 21:30:44 hays: https://github.com/crosstool-ng/crosstool-ng/blob/master/config/toolchain.in#L271-L280 Sep 20 21:31:19 ohh host tuple Sep 20 21:34:25 Worked i got only 1.8 GiB Sep 20 21:34:39 i guess that means i really know what im doing.. if im filling that out haha Sep 20 21:36:43 [00:00] / Invalid configuration `': machine `-unknown' not recognized Sep 20 21:38:07 fixed. Sep 20 21:38:10 alright here we go Sep 20 22:14:59 well my stupidity is costing me be the hour.. heh but luckily only like $0.15/hr Sep 20 22:15:17 i wonder how big you can get an instance and it still benefits a gcc build Sep 20 23:05:56 Hi zmatt Sep 20 23:06:14 I'll probably need a bit of help to flash it, though tomorrow Sep 20 23:06:48 Now that it's 2 Gb i can do with the 7.5 (2014) image that's 2GB but it's a bit old. Sep 21 00:22:10 jfsimon1981: start with a minimal image, not with an ancient image Sep 21 00:25:36 given that you knew from the start that this reconfiguration would leave only half the eMMC size, I'm a bit confused you're only now considering what to flash onto it instead of *first* making sure that 2G is plenty of space for your use case Sep 21 00:26:15 I also feel like we've surely discussed this at a previous occasion **** ENDING LOGGING AT Wed Sep 21 02:59:57 2022