<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=3005&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Please suggest how to get BBB running Devuan]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3005</link>
		<description><![CDATA[The most recent posts in Please suggest how to get BBB running Devuan.]]></description>
		<lastBuildDate>Mon, 19 Sep 2022 02:53:51 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Please suggest how to get BBB running Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=37594#p37594</link>
			<description><![CDATA[<p>I figure it is best to continue an old identical thread.</p><p>I am installing armhf on my BeagleBone Black.</p><p>I read that armel and armhf both work but that Debian plans to obsolete armel eventually. </p><p>I tried the arm-sdk but soon realized I was in over my head, as the config file is not fully filled out.</p><p>Additional dependencies were installed besides the ones mentioned here:<br />https://git.devuan.dev/devuan-sdk/arm-sdk<br /> % sudo apt install quilt bison flex chrpath gawk texinfo libsdl1.2-dev whiptail diffstat cpio libssl-dev zsh</p><p>% load devuan beagleboneblack&#160; <br />Disabling additional executable binary formats: binfmt-support.<br />Enabling additional executable binary formats: binfmt-support.<br /> [E] no valid distro specified<br /> [E] error in: load devuan beagleboneblack<br /> [W] called in: arm-sdk loaded</p><p>So... <br />https://pkgmaster.devuan.org/devuan/dists/chimaera/main/installer-armhf/current/images/</p><p>I am working from this directory. First stumbling block is the sheer amount of files, and there is no README. I&#039;m not sure what files I need, what the purpose of each file is.. It&#039;s akin to having all the ingredients, but not the recipe.</p><p>Maybe this only reflects that what is needed right now is skilled devs, more than anything, before it can be made accessible to others. Any documentation out there?</p><p>Related threads:<br />https://dev1galaxy.org/viewtopic.php?id=1158<br />https://dev1galaxy.org/viewtopic.php?id=2043</p>]]></description>
			<author><![CDATA[dummy@example.com (auanta)]]></author>
			<pubDate>Mon, 19 Sep 2022 02:53:51 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=37594#p37594</guid>
		</item>
		<item>
			<title><![CDATA[Re: Please suggest how to get BBB running Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17459#p17459</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Here&#039;s how u-boot is built for the devuan image: <a href="https://git.devuan.org/sdk/arm-sdk/blob/master/boards/beaglebone-black.sh#L63" rel="nofollow">https://git.devuan.org/sdk/arm-sdk/blob … ack.sh#L63</a><br />I have two here, did not try them yet, but that&#039;s on my todo list, so if you need halp I can spend some time on it<br />but basically you should make an SD card with two partitions, one fat32 of a few Mo, with 5 files :<br />MLO : a reduced version of u-boot, which fits in the CPU instruction cache (128k), and which MUST have the name MLO<br />u-boot.img : full version of u-boot<br />uEnv.txt : environnement for the full version of u-boot<br />zImage : linux kernel<br />am335x-boneblack.dtb : device tree for the linux kernel<br />the names of the last four files depends on the configuration you have in the MLO, u-boot and uEnv.txt<br />You can find the files in this archive : <a href="http://www.nathael.org/Data/Devel/BBB/results_4.4.1.tar.xz" rel="nofollow">http://www.nathael.org/Data/Devel/BBB/r … 4.1.tar.xz</a><br />in the same directory you also have base images for the rootfs to be extracted on the second partition of the SD card<br />and the patched sources for both u-boot and linux kernel<br />IF you rather want to do it on your own, then you can follow instructions from here : <a href="http://www.nathael.org/wiki_cpe/index.php/Dev/BBB" rel="nofollow">http://www.nathael.org/wiki_cpe/index.php/Dev/BBB</a><br />these are in french, but I think that a google translate whould do the job ... though there is very little text to translate.<br />the difference between the cross-compilation toolchains gcc-arm-none-eabi, gcc-arm-linux-gnueabi and gcc-arm-linux-gnueabihf are :<br />none vs linux : none targets micro-controllers and thus includes no libc, while linux targets linux systems, whith a libc<br />gnu : targets GNU libc<br />eabi vs eabihf : eabi is for ARM processors without a FPU (debian armel architecture), while eabihf targets those with a FPU (hardfloat) (debian armhf architecture)<br />you can also have gcc-arm-linux-uclib<br />which uses the uClibc instead of the GNU libc<br />the name is in the form &quot;gcc-architecture-OS-libc&quot;<br />whith some addition of the ABI used for ARM and MIPS toolchains where there can be many of them (mips is much worse than ARM for the ABI part)<br />apt-cache search gcc mips ...<br />boot.scr is not like a grub &quot;stage 2&quot;<br />it&#039;s an u-boot script<br />it is converted from boot.cmd using this command : mkimage -C none -A arm -T script -d boot.cmd boot.scr<br />which only adds a header to the boot.cmd file for u-boot<br />it has the same role as the uEnv.txt file for the beaglebone, and the name is specified in the u-boot configuration when u-boot is compiled<br />the support for text files with or without the header is also an u-boot configuration option<br />and you can create a system which needs no such configuration file, as u-boot can embed a default config, so once you know what you want, you can put it in the default u-boot config and get rid of the text file<br />same for the second u-boot on both beaglebone and allwinner boards<br />the first one (MLO for beaglebone or spl.bin for allwinner) is a simplified u-boot which can run in the processor instruction cache and data cache, which thus needs to be small enough, and which job is to init the DDR and start a second u-boot which in turns loads the linux kernel<br />the need for two u-boot is only beacause a full-featured u-boot does not fit in the instruction cache<br />needs to be less than 32k or something like that, right?<br />but once you know what you need, you can keep only the required parts in the first u-boot and tell it to load you kernel instead of the second u-boot<br />the size depends on the processor<br />under 128k for the AM335x of the beaglebone<br />I did not check for the Allwinner H2+ of the OrangePi zero<br />hum, the spl is indeed very small (18k) so the limit may be lower for the Allwinner H2+<br />i do remember getting that impression from elsewhere before<br />yep, from the H2+ documentation, 32k L1 instruction cache<br />this is very processor specific<br />it might be harder to get enough in the first stage u-boot (spl) to run the Linux kernel</p><p>Q: please let me know, where can I find BROM description?<br />does it always try to boot from SD at first?<br />A: the details of bootrom behaviour can be found in the AM335x Technical Reference Manual, but the short answer is: on the BBB by default bootrom checks { eMMC, μSD, uart0 (xmodem), usb0 (rndis } in that order</p><p>Q: how can I boot from SD if something bootable is present on the eMMC?<br />A: if you power on with the S2 button (aka the boot mode button) held down then the boot order (for bootrom) becomes { SPI flash, μSD, usb0 (rndis), uart0 (xmodem) }<br />you can (and should) let go of the S2 button once the power led turns on (or to be technical, 20 milliseconds after the power led turns on)<br />there is no SPI flash on beaglebones (except the BeagleBone Enhanced if I remember correctly) but you&#039;re free to connect one if you have some reason for it<br />note that this only determines where bootrom looks for u-boot (or rather, the MLO which contains the u-boot SPL), u-boot typically makes its own decisions with regard to where to load linux from</p><p>Q: thanks for letting me know<br />SPI flash is an additional storage option? it is connected to some pins?<br />A: angstrom has not been the default for many, many years.&#160; this was before I started using beaglebones so I don&#039;t know anything about it</p><p>Q: are uboot and kernel bound to each another somehow?<br />A: nope, in general they are not, however it is recommended to use the u-boot that came with whatever image you want to use<br />u-boot = x86 bios + grub...<br />in theory, but in practice there can still be trouble... for example, current debian images normally use u-boot overlays, but this isn&#039;t supported by old u-boot versions</p><p>Q:then what BROM is?<br />a very basic bios that you have no control other then 16/8 gpio..<br />does not BROM do hardware initialization like DDR?<br />A: nope</p><p>Q: is it reflashable?&#160; is there a source for BBB BROM somewhere?<br />A: bootrom is hard-baked into the SoC basically just does very rudimentary setup of the processor and loads the next stage into the internal SRAM. it will not do any board-specific setup such as DDR memory</p><p>Q:how can I be sure there is no a trojan for TrustZone?<br />A: you can&#039;t, but trustzone is not really supported anyway (technically there&#039;s a secure monitor, but it is only used to handle a small number of Secure Monitor Calls used to write to special registers that are not directly writable by the OS)<br />there&#039;s no secure-world kernel on AM335x GP devices</p><p>Q: Cortex A8 is stated to have a TrusZone? Is TI version any different?<br />A: I feel like I literally just answered that</p><p>Q: it means BBB CPU does not meet Cortex A8 specs?<br />A: it&#039;s r2p1 Cortex-A8 with neon...<br />and I feel like you&#039;re asking questions about things you don&#039;t really understand yet yourself<br />thumb2 works unlike the r1p3&#039;s we used on the Beagle/xM<br />also, I think it&#039;s r3p2</p><p>Q: sorry, I even do not know what r2p1 is, are these revisions?<br />A:yep, definitely r3p2, <br />yes, cortex-a8 revisions <br />r3p2 is the last revision<br />anyway, the short summary is: even though the cortex-a8 core itself has trustzone support, it is not usable on GP versions of the AM335x, which is what&#039;s used on the BBB</p><p>Q: can you please point me to a public explanation of this interesting issue related to TrustZone being revision specific for a Cortex A8 CPU?<br />A: support@ti.com can help you. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />except for a tiny bit of initialization after reset and a tiny SMC handler, everything on the BBB runs in public (aka &quot;non-secure&quot;) world<br />has nothing to do with the cortex-a8<br />it&#039;s just how it&#039;s setup on the AM335x</p><p>Q: may be TZ is just not usable by end users but still usable by a trojan injected on the factory?<br />A: if you want to be able to trust hardware, you&#039;ll have to design your own processor and create it by soldering transistors together<br />have fun</p><p>Q: haha, very smart, I still can choose AllWinner<br />A: lol, I&#039;d trust a TI SoC a lot more than an AllWinner one<br />lol, and your worried about TI&#039;s trojans&#039;!!!&#160; China already back-doored that one..<br />I&#039;m not concerned about trustzone on the BBB... if somewhere were going on in secure world, that would be observable anyway</p><p>Q: there is known method for a root escalation in AllWinner, but for a client mode it does not matter<br />I would prefer something with backdoors but without already injected active trojans<br />A: also, it&#039;s hard to imagine what that trojan could do, given that it only has 1KB of ram that&#039;s private to secure world</p><p>Q: is not all RAM related to TZ not readable from outside?<br />A: there&#039;s reason to believe TI would put a trojan in their hardware... it would be easy to discover and cause terrible damage to their reputation</p><p>Q: unless they are forced to do so by NSA or by above regulations<br />&quot;RAM related to TZ&quot; is meaningless... trustzone doesn&#039;t specify anything about RAM<br />otherwise no way to a public market?<br />for all things trustzone: <a href="https://developer.arm.com/ip-products/security-ip/trustzone" rel="nofollow">https://developer.arm.com/ip-products/s … /trustzone</a><br />you just seem really paranoid about a topic you know very little about<br />trustzone is irrelevant on the BBB<br />sounds good, though hardly believable<br />A:what you do or do not believe is not my problem<br />sure, thank you very much for your earlier suggestions</p><p>Q:does a lack of TZ depend on BBB release year or revision<br />besides, DEFCON was last week, nothing is &quot;secure&quot; today, till all the things pointed out is fixed. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /><br />A:but I&#039;m pretty security-paranoid myself, have dug a fair bit into bootrom on the AM335x, have dumped and partially reverse-engineerd the secure part of bootrom on the DM814x (a direct ancestor of the AM335x) to see what it does<br />based on all that, my opinion is: there&#039;s no need to worry about bootrom<br />all 1Ghz Aam335x are the same die revision..<br />no, it applies to all AM335x SoCs, and I think all TI SoCs in general (except maybe the latest ones, I don&#039;t know much about those yet)</p><p>Q: it looks like a BBB much better in terms of security than X86?<br />A: X86 is horrible, though BBB isn&#039;t secure.. it wasn&#039;t designed for that.. it was designed for usablity..</p><p>Q: cannot DMA be isolated by software on X86?<br />A: it&#039;s only isolated if you dump a bucket of cement on it and throw it into the ocean..</p><p>A: Regarding OpenBSD, it&#039;s easier then that..&#160; While testing efi boot, i noticed u-boto doesn&#039;t scrub memory, hence if you reboot, and halt.. EVERYTHING is still in DDR3</p><p>Q:grsec pax is known to protect from unknown errors in code<br />does not grsec 4.9 do it better than linux v5x?<br />A:anything worth a damn was already implemented by kees and pushed into mainline.</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (alupoj)]]></author>
			<pubDate>Tue, 20 Aug 2019 11:28:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17459#p17459</guid>
		</item>
		<item>
			<title><![CDATA[Re: Please suggest how to get BBB running Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17417#p17417</link>
			<description><![CDATA[<p>I have found there is SDK to build ARM images for different supported boards:<br /><a href="https://git.devuan.org/sdk/arm-sdk" rel="nofollow">https://git.devuan.org/sdk/arm-sdk</a></p><p>After reading corresponding script:<br /><a href="https://git.devuan.org/sdk/arm-sdk/blob/master/boards/beaglebone-black.sh#L63" rel="nofollow">https://git.devuan.org/sdk/arm-sdk/blob … ack.sh#L63</a></p><p>I am still not sure, what is rebuilt from source in it except kernel? Uboot?<br />All userspace is debootstrapped in a precompiled binary form from corresponding Devuan repository?</p><p>How to rebuild the whole installation from source like Gentoo?<br />Preferably by cross compiling on a X86 host or at least via distcc helper.</p><p>Can you please include those options for a full rebuild from source into the SDK?</p>]]></description>
			<author><![CDATA[dummy@example.com (alupoj)]]></author>
			<pubDate>Thu, 15 Aug 2019 01:47:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17417#p17417</guid>
		</item>
		<item>
			<title><![CDATA[Re: Please suggest how to get BBB running Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17411#p17411</link>
			<description><![CDATA[<p>I mounted the image:</p><div class="codebox"><pre><code>/dev/loop0p1 on /mnt/d1 type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0p2 on /mnt/d2 type ext4 (rw,relatime)</code></pre></div><p>First one is a boot loader and second is root fs.</p><p>I was suggested uboot is flashed into beginning sectors of the media from which BBB boots from its BROM.</p>]]></description>
			<author><![CDATA[dummy@example.com (alupoj)]]></author>
			<pubDate>Wed, 14 Aug 2019 04:29:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17411#p17411</guid>
		</item>
		<item>
			<title><![CDATA[Please suggest how to get BBB running Devuan]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17409#p17409</link>
			<description><![CDATA[<p>Dear Friends,</p><p>There are a lot of manuals with a lot of undesirable time waste information how to flash Beaglebone Black, e.g.:<br /><a href="https://beagleboard.org/getting-started" rel="nofollow">https://beagleboard.org/getting-started</a></p><p>The first what I have read of course is:<br /><a href="https://files.devuan.org/devuan_jessie/embedded/README.txt" rel="nofollow">https://files.devuan.org/devuan_jessie/ … README.txt</a></p><p>It is clear I have to dd image to SD, it is easy.</p><p>How can I replace uboot and kernel?</p><p>I do NOT see an uboot bin for the BBB:<br /><a href="https://devuan.4isp.it/devuan_ascii/embedded/u-boot/" rel="nofollow">https://devuan.4isp.it/devuan_ascii/embedded/u-boot/</a></p><p>May I build my own kernel in Gentoo in cross compiling mode and place it to BBB?</p><p>Will grsec minipli kernel work fine on this board with Devuan?</p><p>Does there exist an RT grsec kernel source? Can RT and grsec be mixed at all?<br />Can grsec+deblobbed+RT kernel be run on BBB? Is RT kernel less secure than non RT or it does not matter?</p><p>Can I use XFS as a root FS for the installation? Or is it too much memory hungry for a 512Mb board? and may be even not compatible with grsec?</p><p>Thank you for your help, it is very valuable.</p>]]></description>
			<author><![CDATA[dummy@example.com (alupoj)]]></author>
			<pubDate>Wed, 14 Aug 2019 03:54:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17409#p17409</guid>
		</item>
	</channel>
</rss>
