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.
<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
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> 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]
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> 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> 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] <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> @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
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?