ArmbianHelper changed the topic of #armbian to: armbian - Linux for ARM development boards | www.armbian.com | Github: github.com/armbian | Commits: #armbian-commits | Developer talk: #armbian-devel | Forum feed: #armbian-rss | Off-Topic: #armbian-offtopic | Logs: -> irc.armbian.com
xispita has quit [Ping timeout: 255 seconds]
<DC-IRC> [Discord] <racernoodl> hi guys
<DC-IRC> [Discord] <racernoodl> i have a question :]
<archetech> we're closed
DC-IRC has quit [Remote host closed the connection]
DC-IRC has joined #armbian
<DC-IRC> [Discord] <infinity_q> .
archetech has quit [Quit: Konversation terminated!]
hyperreal0 has joined #armbian
Some-body_ has joined #armbian
hyperreal has quit [Ping timeout: 268 seconds]
hyperreal0 is now known as hyperreal
DarthGandalf has quit [Ping timeout: 256 seconds]
Some-body_ is now known as DarthGandalf
lyri has quit [Remote host closed the connection]
Lucanis has quit [Ping timeout: 256 seconds]
Lucanis has joined #armbian
p0g0__ has joined #armbian
p0g0_ has quit [Ping timeout: 240 seconds]
jantones has quit [Remote host closed the connection]
jantones has joined #armbian
xispita has joined #armbian
Herc has quit [Remote host closed the connection]
Herc has joined #armbian
Dex_2x has joined #armbian
Dex_2x has quit [Ping timeout: 250 seconds]
Dex_2x has joined #armbian
Manneveru has joined #armbian
LanDi has joined #armbian
Dex_2x has quit [Quit: Client closed]
Dex_2x has joined #armbian
archetech has joined #armbian
Dex_2x has quit [Ping timeout: 250 seconds]
califax has quit [Remote host closed the connection]
califax has joined #armbian
mrueg has joined #armbian
lyri has joined #armbian
lyri has quit [Ping timeout: 255 seconds]
lyri has joined #armbian
<DC-IRC> [Discord] <bassamanator> Hi guys, just looking for a link to `docs` for a fully headless device. Need to get it on my network upon `first boot`. Thanks!
<DC-IRC> [Discord] <Werner> ethernet is set to dhcp and ssh is on. both by default. check your router for the assigned ip address and connect with root/1234
<DC-IRC> [Discord] <bassamanator> My device is wifi only.
<DC-IRC> [Discord] <bassamanator> Hmm so I would need to create a custom image to accomplish this?
<DC-IRC> [Discord] <bassamanator> Hi guys, just looking for a link to `docs` for a fully headless device, `wifi` only device. Need to get it on my network upon `first boot`. Thanks!
<DC-IRC> [Discord] <bassamanator> Hi guys, just looking for a link to `docs` for a fully headless, `wifi` only device. Need to get it on my network upon `first boot`. Thanks!
<DC-IRC> [Discord] <Werner> That's what Armbian is meant for. A build framework to make customized images but the easy way πŸ˜‰
<DC-IRC> [Discord] <bassamanator> Hmm might be above my skill level.
<DC-IRC> [Discord] <bassamanator> I was hoping to use `armbian` instead of the opi-zero-2w debian image, but we shall see about that...
LanDi1 has joined #armbian
<DC-IRC> [Discord] <Werner> Well you have to put your wifi credentials somehow into vendor image as well before first boot
<DC-IRC> [Discord] <bassamanator> I have the official image working fine, there's a template.cfg in `/boot`. Was hoping for similar on armbian.
<DC-IRC> [Discord] <bassamanator> I have the official image working fine, there's a template.cfg in `/boot` to add wifi name/password. Was hoping for similar on armbian.
LanDi has quit [Ping timeout: 256 seconds]
LanDi1 is now known as LanDi
alekksander has joined #armbian
<DC-IRC> [Discord] <Werner> So if you are fine with editing an already existing image you can add credentials to `/root/.not_logged_in_yet`. Here are a few things that could be added: https://github.com/armbian/build/blob/66b0171516297ced0b0fead62c2f2763627176e5/extensions/preset-firstrun.sh
Herc has quit [Remote host closed the connection]
Herc has joined #armbian
<DC-IRC> [Discord] <bassamanator> Brilliant! I knew there had to be a way to do this. Thanks a lot!
<DC-IRC> [Discord] <Werner> Welcome
<DC-IRC> [Discord] <Werner> But if you're going into full headless boards that to their job oob you really should dig into the possibilites using customization and extensions. Its fun πŸ˜‰
<DC-IRC> [Discord] <bassamanator> Well, I guess I may want to look into it at some point. I think it's more that i'm not hardcore enough to have a need for that πŸ™‚
<DC-IRC> [Discord] <Werner> rudimentary bash knowledge should be sufficient. Everything else is mentioned in the docs πŸ˜„
<DC-IRC> [Discord] <bassamanator> Added another project on my endless todo list πŸ™‚
<DC-IRC> [Discord] <bassamanator> For the `preset-firstrun.sh`, do I need to simply create a `/root/.not_logged_in_yet` with relevant info on the newly create sdcard with the armbian image?
<DC-IRC> [Discord] <Werner> `/root/.not_logged_in_yet` should already be present on the written image
<DC-IRC> [Discord] <bassamanator> Unfortunately it isn't.
<DC-IRC> [Discord] <Werner> Hm. Then just create and fill it
<DC-IRC> [Discord] <bassamanator> I'm using this: https://www.armbian.com/orange-pi-zero-2w/
<DC-IRC> [Discord] <bassamanator> Bookworm cli
lyri has quit [Remote host closed the connection]
<DC-IRC> [Discord] <Werner> Usually it is present. however it gets removed after first boot
<DC-IRC> [Discord] <bassamanator> The way `https://github.com/armbian/build/blob/66b0171516297ced0b0fead62c2f2763627176e5/extensions/preset-firstrun.sh` reads though, it *creates* `/root/.not_logged_in_yet`, and *doesn't* expect it to exist :/
TheCoffeMaker has quit [Ping timeout: 246 seconds]
TheCoffeMaker has joined #armbian
<DC-IRC> [Discord] <Werner> Maybe the function of creating this file was "outsourced" into this extension which is called by default. Would need to research. Anyway I just linked this extension to give you an idea about what content the .not_logged_in_yet file could have.
<DC-IRC> [Discord] <Werner> I never used it myself, so not sure how this works out πŸ˜‰
<DC-IRC> [Discord] <bassamanator> Appreciate your help. I'll see if I can build my own image. Opi official image is slightly wonky, might be worth it to learn this.
TheCoffeMaker has quit [Ping timeout: 260 seconds]
TheCoffeMaker has joined #armbian
eaglerock has quit [Read error: Connection reset by peer]
<DC-IRC> [Discord] <infinity_q> *slightly???*
zeemate has joined #armbian
coldfeet has joined #armbian
<DC-IRC> [Discord] <bassamanator> Yes, that's the word I would use to describe it.
<DC-IRC> [Discord] <bassamanator> Yes, those are the words I would use to describe it, `slightly wonky`.
<DC-IRC> [Discord] <infinity_q> last time I used an opi official OS build, `slightly wonky` was not an adequate description
<DC-IRC> [Discord] <bassamanator> How would you describe it?
<DC-IRC> [Discord] <infinity_q> more like *epically wonky*
<DC-IRC> [Discord] <bassamanator> *Life is a matter of perspective*.
<DC-IRC> [Discord] <infinity_q> haha yep
<DC-IRC> [Discord] <Werner> So better go with the original rather than an outdated fork πŸ˜‰
<DC-IRC> [Discord] <bassamanator> I hear you, but considering that my vanilla build failed, the wonky fork might have to suffice :/
<DC-IRC> [Discord] <Werner> Ah the loop thingy again...
Smedles has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
Smedles has joined #armbian
<DC-IRC> [Discord] <Werner> Pure guess: Do you have snaps installed or do you run snapd?
<DC-IRC> [Discord] <bassamanator> I don't think I have any snaps installed.
<DC-IRC> [Discord] <Werner> That issue has been present quite a while how. We could not figure the root cause yet. Also does not affect all users, only some. As for myself I did not run into that ever while building hundets of images across various machines/architures. Other hit it on first try....
<DC-IRC> [Discord] <bassamanator> Just checked, I don't even have `snapd` installed on this machine. Manjaro user here, I do official, aur, appimages, and flatpaks only.
<DC-IRC> [Discord] <bassamanator> Guess I can try the build again.
<DC-IRC> [Discord] <Werner> If you have a chance to setup a vm with ubuntu jammy it will most likely work
<DC-IRC> [Discord] <bassamanator> I believe the build defaults to using docker if installed. I wonder if not going the docker route would make a difference?
<DC-IRC> [Discord] <bassamanator> I'll try same build again to see if it was a fluke
<DC-IRC> [Discord] <Werner> Yes, docker is used automatically if available to allow building on other OS than Jammy. For native building Ubuntu Jammy is the only officially supported build environment.
TheCoffeMaker has quit [Ping timeout: 252 seconds]
<DC-IRC> [Discord] <bassamanator> Ah kk
<DC-IRC> [Discord] <Werner> You could pass PREFER_DOCKER=no but then it will fail on OS check on Manjaro
<DC-IRC> [Discord] <igorpec> some OS doesn't have loop devices enabled by default
<DC-IRC> [Discord] <igorpec> while debian/ubuntu has
TheCoffeMaker has joined #armbian
<DC-IRC> [Discord] <bassamanator> Yeah same error again.
<DC-IRC> [Discord] <c0rnelius77> this loop business happened to me recently.
<DC-IRC> [Discord] <bassamanator> Were you able to resolve?
<DC-IRC> [Discord] <c0rnelius77> Nah I didn't have time to look into it. It happened using noble `HOST` arm64. I was gonna check using Jammy to but I never got around to it.
<DC-IRC> [Discord] <bassamanator> Got it.
<DC-IRC> [Discord] <bassamanator> Hey did you create the orangepi-zero-2w image? I'm wondering if there's a built in method to connect to wifi if the device is headless.
<DC-IRC> [Discord] <c0rnelius77> It fails on Jammy now as well `Command failed, retrying in 5s [ check_loop_device_internal ]`
ced117 has joined #armbian
califax has quit [Remote host closed the connection]
califax has joined #armbian
califax has quit [Remote host closed the connection]
<DC-IRC> [Discord] <c0rnelius77> I suspect this is needed; https://github.com/armbian/build/pull/6576/files
califax has joined #armbian
<DC-IRC> [Discord] <Werner> Worth a try for sure
zeemate has quit [Ping timeout: 240 seconds]
coldfeet has quit [Remote host closed the connection]
<DC-IRC> [Discord] <c0rnelius77> I normally would use `losetup -P -f` but I'm not sure how armbian is doing its business on this end.
<DC-IRC> [Discord] <c0rnelius77> `-P, --partscan create a partitioned loop device` ` -f, --find find first unused device`
<DC-IRC> [Discord] <c0rnelius77> Yeah that's the fix. Armbian doesn't create a /dev/loop[0-9]. So if one doesn't exisit the build fails. `sudo losetup -f` fixes the issues.
<DC-IRC> [Discord] <c0rnelius77> I just manually created one `ls /dev/loop*
<DC-IRC> [Discord] <c0rnelius77> /dev/loop0 /dev/loop-control` and the build went through as it should.
<DC-IRC> [Discord] <bassamanator> I'd like to try this. How do I create said loop?
<DC-IRC> [Discord] <c0rnelius77> @bassamanator `sudo losetup -f`
<DC-IRC> [Discord] <c0rnelius77> then run the build
<DC-IRC> [Discord] <bassamanator> How would I undo `sudo losetup -f` afterwards, do you know?
<DC-IRC> [Discord] <c0rnelius77> Why would you want to πŸ™‚
<DC-IRC> [Discord] <bassamanator> lol cause I don't know what it's doing/how it will affect me in the future...
<DC-IRC> [Discord] <c0rnelius77> Its not gonna hurt anything being there. Usually they are created during boot.
<DC-IRC> [Discord] <bassamanator> so `sudo losetup -f` then do `./compile`?
<DC-IRC> [Discord] <c0rnelius77> yeap. you can check to make sure if you want by `ls /dev/loop*` make sure it worked.
<DC-IRC> [Discord] <c0rnelius77> snapd was brought up as an issue because it uses the /dev/loop* and creates a dick load of them which can be a problem for builders.
<DC-IRC> [Discord] <bassamanator> Compiling...
<DC-IRC> [Discord] <bassamanator> Building rather..
<DC-IRC> [Discord] <.33335> hi guys, I want to contribute multi dtsi files, where should I contribute to, and how?
<DC-IRC> [Discord] <bassamanator> I imagine there's a contribution guide for all the repos.
<DC-IRC> [Discord] <.33335> I commited on `armbian/linux-rockchip` (vendor) however I don’t know what β€˜current and edge’ kernel are using
<DC-IRC> [Discord] <Werner> That depends on the individual board.
<DC-IRC> [Discord] <Werner> current isn't defined, therefore does not exist for this family. edge is mainline 6.8 atm
<DC-IRC> [Discord] <bassamanator> Build succeeded. Progress!
<DC-IRC> [Discord] <bassamanator> Now where it's stored is another story.
<DC-IRC> [Discord] <Werner> nice
<DC-IRC> [Discord] <.33335> Thanks!
<DC-IRC> [Discord] <Werner> output/images/
<DC-IRC> [Discord] <bassamanator> Perfect.
<DC-IRC> [Discord] <bassamanator> Now to see if I can do something about the wifi, or maybe I can use a usb to eth, wonder if that would work :/
<DC-IRC> [Discord] <Werner> in your userpatches directory there should be a file like customize-image.sh or something. The code inside the Main function will be executed inside the image in chroot just before it gets assembled into the .img file.
<DC-IRC> [Discord] <Werner> So use it to adjust network settings for example
<DC-IRC> [Discord] <.33335> About patches... Should I open a pr on armbian/linux-rockchip directly?
<DC-IRC> [Discord] <.33335> Device tree adding
<DC-IRC> [Discord] <Werner> If it is vendor related, yes. Otherwise _build_ repo
<DC-IRC> [Discord] <bassamanator> That helps. Hopefully I can make it so that the user can store wifi credentials in a file, which will be read and applied during `first-run`.
<DC-IRC> [Discord] <Werner> You find some example code inside there as well....wasn't very useful for me perosnally but whatever πŸ™‚
<DC-IRC> [Discord] <Werner> You find some example code inside there as well....wasn't very useful for me personally but whatever πŸ™‚
<DC-IRC> [Discord] <igorpec> that is already implemented
<DC-IRC> [Discord] <bassamanator> Link to docs please on where to store creds?
<DC-IRC> [Discord] <bassamanator> I flashed the sd card but don't see what would be relavent for this :/
<DC-IRC> [Discord] <igorpec> ha, docs 😦 dunno if we have it https://github.com/armbian/build/pull/6194
<DC-IRC> [Discord] <bassamanator> Reading, thanks a bunch.
archetech has quit [Quit: Konversation terminated!]
<DC-IRC> [Discord] <c0rnelius77> @bassamanator If you compile ur own kernels on ur host machine make sure you have the following the defconfig ```CONFIG_BLK_DEV_LOOP=y
<DC-IRC> [Discord] <c0rnelius77> CONFIG_BLK_DEV_LOOP_MIN_COUNT=1
<DC-IRC> [Discord] <c0rnelius77> ```
<DC-IRC> [Discord] <c0rnelius77> @bassamanator If you compile ur own kernels on ur host machine make sure you have the following in the defconfig ```CONFIG_BLK_DEV_LOOP=y
<DC-IRC> [Discord] <c0rnelius77> CONFIG_BLK_DEV_LOOP_MIN_COUNT=1
<DC-IRC> [Discord] <c0rnelius77> ```
alekksander has quit [Remote host closed the connection]
lyri has joined #armbian
LanDi has quit [Remote host closed the connection]
lyri has quit [Ping timeout: 268 seconds]
lyri has joined #armbian
califax has quit [Remote host closed the connection]
califax has joined #armbian
archetech has joined #armbian
archetech has quit [Quit: Leaving]
archetech has joined #armbian
zeemate has joined #armbian
<DC-IRC> [Discord] <bassamanator> I'm creating a `/root/.not_logged_in_yet` for my headless wifi connect for the first boot (I want to connect automatially so that I can SSH in), but the comment explaining `PRESET_CONNECT_WIRELESS` is a bit ambiguous, do I have it correct?
<DC-IRC> [Discord] <bassamanator> https://pastebin.com/rZZvwstg
KREYREN has joined #armbian
KREYREN has quit [Remote host closed the connection]
KREYREN has joined #armbian
lyri has quit [Ping timeout: 272 seconds]
lyri has joined #armbian
zeemate has quit [Ping timeout: 240 seconds]
xispita has quit [Ping timeout: 252 seconds]
ced117 has quit [Ping timeout: 255 seconds]
Mangix has quit [Read error: Connection reset by peer]
Mangix has joined #armbian