Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2021.04, v2021.07-rc4 are OUT / Merge Window is CLOSED and next is OPEN / Release v2021.07 is scheduled for 05 July 2021 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
torez has quit [Quit: torez]
mmu_man has quit [Ping timeout: 268 seconds]
LokeshV_ has joined #u-boot
macromorgan has quit [Read error: Connection reset by peer]
agust has joined #u-boot
chrfle_ has joined #u-boot
alpernebbi has joined #u-boot
smartin has joined #u-boot
chrfle_ has quit [Ping timeout: 268 seconds]
fdanis_away is now known as fdanis
sszy has joined #u-boot
chrfle_ has joined #u-boot
fdanis is now known as fdanis_away
mckoan|away is now known as mckoan
fdanis_away is now known as fdanis
monstr has joined #u-boot
alpernebbi has quit [Ping timeout: 244 seconds]
guillaume_g has joined #u-boot
tnovotny has joined #u-boot
ilunev has joined #u-boot
matthias_bgg has joined #u-boot
mckoan is now known as mckoan|away
chrfle_ has quit [Quit: Leaving]
mmu_man has joined #u-boot
<milkylainen> hmm. when loading an raw initrd from u-boot.. does the initrd length matter? What I mean is, I put a initrd in ram, claim it's a little bit bigger than it actually is and tell the kernel where it's at. Does it matter? Doesn't the cpio archive contain it's own length as long as the header is found?
<milkylainen> Why all the messing about how long an initrd is?
LokeshV_ has quit [Remote host closed the connection]
sszy has quit [Ping timeout: 264 seconds]
sszy has joined #u-boot
<milkylainen> #define BZIMAGE_MAX_SIZE 15*1024*1024 /* 15MB */
<milkylainen> Arbitrary?
<urja> the actual format is a sequence of cpio archives (aligned to 4 bytes, minimum) with optional zero padding in between
<urja> (that can be compressed ofc)
<urja> you can go look it up; anyways the gist ends up being... you can claim it is bigger than it actually is, but then you need to zero fill the area
<urja> and the kernel will walk through the area looking for more cpio archives :P
<milkylainen> urja: Ok. But zeroed out area should be rather harmless. :)
<urja> that's for an initramfs actually... initrd the actual ramdisk support (the thing that's being removed in the kernel soon or already idk) will look at the filesystem header to figure out the size of the ramdisk and thus padding is harmless
mmu_man has quit [Quit: leaving]
mmu_man has joined #u-boot
sszy has quit [Read error: Connection reset by peer]
sszy has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
ladis has joined #u-boot
Guest1 has joined #u-boot
alan_o has quit [Ping timeout: 244 seconds]
alan_o has joined #u-boot
<mps> where to get help about qemu riscv64 u-boot problems
macromorgan has joined #u-boot
Guest52 has joined #u-boot
<Guest52> knji
<Guest52> sorry
<Guest52> I am here to ask a questions concerning u boot
<Guest52> I know u-boot irc is more aimed at developers rather than the end user
<Guest52> but I cannot find this infortmation anywhere else
<Guest52> Basically I am trying to boot a usb from my chromebook
<Guest52> so I enter the command usbboot <then I put my usb name here> and hit enter
<Guest52> It then returns correct usage
<Guest52> usbboot addr dev:part
<Guest52> I am unsure what dev:part is and hoping for an answer
yates has joined #u-boot
<yates> new question: isn't it a common problem to require a driver within u-boot, e.g., a specific file system, as well as for the booted linux kernel? is it necessary to develop the two drivers independently or is there some way one driver can be shared?
<Guest52> yates do you know alot about u boot
<yates> Guest52: some. i've customized it in the past.
<Guest52> can you preiovus questions before you joined or no
<yates> what?
<ladis> yates: there's another bootloader aiming for shared drivers ;-)
<Guest52> [15:48:08] <Guest52> I know u-boot irc is more aimed at developers rather than the end user
<Guest52> [15:48:23] <Guest52> but I cannot find this infortmation anywhere else
<Guest52> [15:49:03] <Guest52> Basically I am trying to boot a usb from my chromebook
<Guest52> [15:49:34] <Guest52> so I enter the command usbboot <then I put my usb name here> and hit enter
<Guest52> [15:49:43] <Guest52> It then returns correct usage
<Guest52> [15:49:55] <Guest52> usbboot addr dev:part
<Guest52> [15:50:18] <Guest52> I am unsure what dev:part is and hoping for an answer
<Guest52> shit
<Guest52> srry
<ladis> yates: here you will need to make driver u-boot specific
mmu_man has joined #u-boot
<yates> ladis: oh!?! cool. what is the name of this new bootloader?
<Guest52> could i ask a question
<ladis> yates: That was sort of a joke. Barebox.
<Guest52> ?
<ladis> yates: But it has specifics on its own
<Guest52> ?
Guest49 has joined #u-boot
Guest49 has quit [Client Quit]
<Guest52> can anyone see these messages
<yates> ladis: i am not following you. are you saying there has to be two drivers, or is there a way to design a single driver for both purposes?
<yates> Guest52: yes, i am seeing you
<Guest52> ok could i ask something
<yates> Guest52: in normal irc culture, you never need to ask if you can ask. so go ahead and ask.
<Guest52> Basically I am trying to boot a usb from my chromebook
<Guest52> so I enter the command usbboot <then I put my usb name here> and hit enter
<Guest52> It then returns correct usage usbboot addr dev:part
<Guest52> I am unsure what dev:part is and hoping for an answer
<yates> ladis: i would really like to followup on this. can you please let me know?
<ladis> yates: /join #barebox
<yates> ok
<Guest52> yates hello/
<cambrian_invader> Guest52: dev is a device number; so for USB it is probably the number of the USB interface
matthias_bgg has quit [Ping timeout: 268 seconds]
<cambrian_invader> part is the partition number; first partition is 1, then 2, etc.
<Guest52> yates do i find that
vagrantc has joined #u-boot
<Guest52> *how do i find that
<Guest52> yates how do i get the usb interface number
<cambrian_invader> try `usb tree` or `usb info`
<Guest52> where do i put that
<cambrian_invader> (and I'm not yates)
<Guest52> oh srry yh
<cambrian_invader> same place you put the `usbboot` command
<Guest52> cambrian_invader where would i type usb tree / usb info
<Guest52> oh ok
<Guest52> thx
<Guest52> cambrian_invader when i put partion since im booting a second os i would put 2 right
<cambrian_invader> depends
<Guest52> on what
<cambrian_invader> try `part list usb X` where X is the device number
<cambrian_invader> and you can see what partitions there arte
<Guest52> on the usb?
<Guest52> theres ony a live linux drive
<Guest52> because im booting via u-boot onto chromebook
<cambrian_invader> then why do you want to boot off of usb?
<Guest52> because its a live usb i can then install it onto my device
<Guest52> and remove chrome os
<Guest52> cambrian_invader
<cambrian_invader> so figure out the partition for the usb ;)
<Guest52> i dont qute understand cambrian_invader
<cambrian_invader> if you want to boot off of a USB
<Guest52> why would the usb be partioned
<cambrian_invader> why wouldn't it be?
<Guest52> partioned in what sense
<Guest52> its a new usb
<cambrian_invader> it has an MBR or a GPT
Giddy has joined #u-boot
<Guest52> cambrian_invaderim about to switch accounts wait a sec i should be called Giddy
<Giddy> cambrian_invader im going to try it nowq
<Giddy> *now
<Giddy> ill tell you what partitions there are
<Giddy> cambrian_invader ok?
matthias_bgg has joined #u-boot
Guest1 has quit [Quit: Client closed]
Guest52 has quit [Ping timeout: 250 seconds]
<Giddy> cambrian_invader i am having trouble opening the u-boot commands line
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<Giddy> @cam
<Giddy> cambrian_invader i need some more help
<Giddy> @cam
<Giddy> cambrian_invader when i do part list usb and then the usb number
<Giddy> it doesnt return anythign
<Giddy> *anything
<Giddy> It just starts a new line
<cambrian_invader> and this is correct based on the output of `usb info`?
<Giddy> no usb tree
<Giddy> cambrian_invader
<cambrian_invader> please elaborate
<Giddy> so i did usb tree
<Giddy> and just after the ubs name there was a long string of numbers and letters
tnovotny has quit [Read error: Connection reset by peer]
<Giddy> i input this into part list usb <the numbers here> it just goes onto a new line cambrian_invader
<Giddy> do you need me to explaind more cambrian_invader
tnovotny has joined #u-boot
<cambrian_invader> can you try `usb storage`
<Giddy> ok done that
<cambrian_invader> and did you see your usb drive
<Giddy> cambrian_invader
<Giddy> cambrian_invaderyes
<Giddy> cambrian_invader yes
<cambrian_invader> ok, lets take a step back
<cambrian_invader> what exactly are you trying to install
<Giddy> i could try usb part
<cambrian_invader> and what are the instructions you are following
<Giddy> cambrian_invader kali linux
<Giddy> my friend managed to do it
<Giddy> it says the partition type is dos
<cambrian_invader> and what does Kali's documentation say about installing onto chomebooks?
<Giddy> nothing but you can boot pretty much any os onto chromebook using a live usb
<Giddy> windows, linux heck even android
<Giddy> cambrian_invader
<cambrian_invader> ok, so you have booted Kali from the live usb?
<Giddy> no thats what im trying to do now
<Giddy> i have a live kali usb
<cambrian_invader> have you booted another Linux distro from a live usb before?
<Giddy> on this device no
<Giddy> i have the part btw
<Giddy> i just had to do usb part
<Giddy> cambrian_invader
<cambrian_invader> ok, can you do `ls usb X /`
<Giddy> is x still the usb number
<cambrian_invader> yes
<Giddy> ok
<cambrian_invader> uh, you will also need the partition
<cambrian_invader> e.g. X:Y
<Giddy> ?
<Giddy> when i run the ls usb command it just goes onto a newline and outputs nothing
<cambrian_invader> the device (e.g. the number of the USB drive) and the partition (on the MBR)
<Giddy> mbr?
ilunev has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<Giddy> ye but how do i find
pgreco has quit [Ping timeout: 244 seconds]
<Giddy> also this is the mbr for my usb right?
<cambrian_invader> yes
<Giddy> how do i find
<Giddy> my mbr'
<Giddy> cambrian_invader
<cambrian_invader> ?
<Giddy> what partition on the mbr do you wantr
<Giddy> *want cambrian_invader
pgreco has joined #u-boot
<cambrian_invader> try them all
<Giddy> so 1 or 2
<Giddy> or do i need specific name
<Giddy> s
<cambrian_invader> the number
<Giddy> whatever i put after it it just returns a new line
<Giddy> giddy: cambrian_invader do you want to discord call or something it might be easier
<cambrian_invader> can you send a screenshot or listing?
<Giddy> listing?
<cambrian_invader> pastebin, etc.
<Giddy> not really since its in the u-boot terminal which on chromebook is accessed though the developer menu
<Giddy> which is a menu outside the os
<cambrian_invader> so can you take a picture
<Giddy> ok
<Giddy> let me find my camera
<Giddy> ok ive got it let me get a picture
<Giddy> ok my camera isnt working
<Giddy> cambrian_invader
redbrain has joined #u-boot
<Giddy> cambrian_invader hello?
<Giddy> cambrian_invader are you still here
<Giddy> ok @cam
<Giddy> ok cambrian_invader i have the images do you want them
<Giddy> cambrian_invader where have you gone
Guest8 has joined #u-boot
<Guest8> e
<Guest8> e
<Giddy> stop
<Giddy> cambrian_invader please can you respond
<cambrian_invader> that number is not theUSb device number
<cambrian_invader> use the one from the output of usb storage
<Giddy> ?
Guest8 has quit [Client Quit]
<Giddy> how i get that cambrian_invader
<cambrian_invader> you ran this command earlier
<Giddy> remind which one it was
akaWolf has quit [Ping timeout: 240 seconds]
<Giddy> cambrian_invader ?
<cambrian_invader> `usb storage`
<Giddy> ok
<Giddy> lemme just get the terminal back
<Giddy> ok ive done usb storage
<Giddy> cambrian_invader where is it
<cambrian_invader> where is what\
<Giddy> the usb stoprage output
<Giddy> cause there is alot of stuff there
<Giddy> i mean
<Giddy> i did usb storage
<Giddy> what area from usb storage do i use
<Giddy> cambrian_invader
<cambrian_invader> look for the bit matching printf(" Device %d: ", desc->devnum);
<Giddy> there is nothing resembling that
<Giddy> Device 0: Vendor: Netac Rev: 8.01 Prod: OnlyDisk
<Giddy> Tyoe: Remvoable Hard Disk
<Giddy> *type
<Giddy> Capacity: 59380.0mb = 57.9 GB (121610240 x 512 )
tnovotny has quit [Quit: Leaving]
<Giddy> @cam
<Giddy> cambrian_invader thats is everything it outputs
<cambrian_invader> it's right there
<cambrian_invader> "Device 0"
<Giddy> oh ok
<cambrian_invader> 0 is the number
<Giddy> kk
<Giddy> so the output is 0
<Giddy> what next cambrian_invader
<cambrian_invader> try `part list usb 0`
<Giddy> ok
<Giddy> done
<Giddy> what now
<cambrian_invader> what partitions are there
<Giddy> 2 partitions
<Giddy> part 1
<Giddy> and part 2
<Giddy> what now
<Giddy> @cam
<Giddy> cambrian_invader
mps has left #u-boot [#u-boot]
<cambrian_invader> have a look around with `ls usb 0:1` or 0:2
<cambrian_invader> you should figure out what file you need to load
<cambrian_invader> honestly, this depends a lot on the SoC
<Giddy> it returns unrecognised system file type
<cambrian_invader> and you are better off finding a chomebook guide
<cambrian_invader> for how to set up booting
<cambrian_invader> or ask your friend
<Giddy> he booted with seabio
<Giddy> cambrian_invader what do i do it says unrecognised filetype
<cambrian_invader> try the other part
<Giddy> ok
<Giddy> it works
<Giddy> it says
<Giddy> EFI/
<Giddy> BOOT/
<Giddy> .fseventsd/
<Giddy> cambrian_invader what now
<cambrian_invader> figure out what you need to boot
<cambrian_invader> find some documentation
<Giddy> ill just try all 3
<Giddy> cambrian_invader the command for booting is...
<cambrian_invader> bootm/booti/zboot/etc...
<cambrian_invader> I can't tell you which one to use, it depends on what you want to boot
<Giddy> i want to boot a usb
<cambrian_invader> no, the type of file
<Giddy> its a .bin
<Giddy> file
<Giddy> what should i put for that
<Giddy> cambrian_invader what do i put for a .bin file
<Giddy> what do i put to boot a .bin file cambrian_invader
<Giddy> hello cambrian_invader
<Giddy> where have you gone cambrian_invader
ilunev has joined #u-boot
<Giddy> cambrian_invader i have to go soon where have you gone
ilunev has quit [Ping timeout: 240 seconds]
ilunev has joined #u-boot
mps has joined #u-boot
fdanis is now known as fdanis_away
<cambrian_invader> I have my own things to do :P
<Giddy> sorry cambrian_invader
<Giddy> cambrian_invader what command for booting .bin though
<cambrian_invader> why do you want to boot that
<Giddy> well its a live usb
<Giddy> cambrian_invader what part of it
<cambrian_invader> read the whole thing
<Giddy> ok
<cambrian_invader> but you are probably interested in the first bit
<Giddy> ok
akaWolf has joined #u-boot
<Giddy> @cam
<Giddy> cambrian_invader i dont have an arm snow though
<cambrian_invader> ?
<Giddy> oh srry opened wrong link
<Giddy> how do i get the image adress and the fdt adress
<Giddy> cambrian_invader
<cambrian_invader> they are variables
<cambrian_invader> they should be defined already
<cambrian_invader> you can print tem with `echo $foo`
<Giddy> so i just do bootefi
<cambrian_invader> you will need to load the files
<cambrian_invader> to the correct addresses
<Giddy> what is tem
<Giddy> cambrian_invader how do i load files
<Giddy> to correct adresses
<cambrian_invader> read the second link
<Giddy> i have
<Giddy> cambrian_invader i cant see where it says that
<cambrian_invader> read the first link
<cambrian_invader> it has examples
<Giddy> im still really confused
<Giddy> cambrian_invader can you just send the commdn
<cambrian_invader> no
<Giddy> cambrian_invader i cant fin
<Giddy> d
<cambrian_invader> I don't know about your board
<cambrian_invader> there is a code box
<cambrian_invader> and a bootefi command
<cambrian_invader> adapt that for usb
<cambrian_invader> with 2 load commands
<Giddy> how
<Giddy> how do i get what to put there cambrian_invader
<cambrian_invader> it's the same syntax as ls and as part
<Giddy> so i just usb part
<Giddy> what is the command structure cambrian_invader
<cambrian_invader> try stuff and see
<cambrian_invader> read the help
<Giddy> so should i try bootefi then part:dev or somethin
<Giddy> cambrian_invader
<Giddy> I ran bootefi EFI/ and it returned invalid DOS signature
<Giddy> cambrian_invader
ilunev has quit [Ping timeout: 244 seconds]
ilunev has joined #u-boot
<Giddy> alr i gtg for a sec ill be back later
redbrain has quit [Quit: leaving]
redbrain has joined #u-boot
ilunev has quit [Ping timeout: 268 seconds]
ilunev has joined #u-boot
monstr has quit [Remote host closed the connection]
<Giddy> cambrian_invader please add me on discord so we can further discuss this Giddy#6129
<Giddy> Giddy#6129 is my discord
guillaume_g has quit [Quit: Konversation terminated!]
<Giddy> cambrian_invader pls add cause this conversation wil go when i turn of computer
<Giddy> Giddy#6129
<cambrian_invader> sorry, I don't have discord
<Giddy> skype?
<Giddy> cambrian_invader email?
<cambrian_invader> sending your questions to the U-boot mailing list may be a good start
<cambrian_invader> CC simon glass
<Giddy> ok
<cambrian_invader> since he maintains the chromebook stuff
<Giddy> what is the email for that
elafon has quit [Remote host closed the connection]
elafon has joined #u-boot
ilunev has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
smartin has quit [Quit: smartin]
elvishjerricco_ has joined #u-boot
drewfustini_ has joined #u-boot
torez has joined #u-boot
torez has quit [Client Quit]
cyrozap-ZNC has joined #u-boot
elvishjerricco has quit [*.net *.split]
drewfustini has quit [*.net *.split]
cyrozap has quit [*.net *.split]
elvishjerricco_ is now known as elvishjerricco
drewfustini_ is now known as drewfustini
cyrozap-ZNC has quit [Client Quit]
cyrozap has joined #u-boot
torez has joined #u-boot
redbrain has quit [Ping timeout: 268 seconds]
Giddy has quit [Quit: Client closed]
Giddy has joined #u-boot
agust has quit [Quit: Leaving.]
ceene has quit [Ping timeout: 268 seconds]
Giddy has quit [Quit: Client closed]
torez has quit [Quit: torez]
mmu_man has quit [Ping timeout: 272 seconds]