#
#asahi-dev · 2025-02-08 08:23
chadmedfixed, thanks
#asahi-dev · 2025-02-08 08:22
chadmedi rewrote check_node to play nicer with everything else and didnt change check_header :p
#asahi-dev · 2025-02-08 08:21
j`eyyes you just pass 0 as a ptr and check_node() derefs that!
#asahi-dev · 2025-02-08 08:21
chadmedoh wait what lmfao i cast it
#asahi-dev · 2025-02-08 08:20
chadmedits using 0 as the offset argument into check_node
#asahi-dev · 2025-02-08 08:20
chadmedj`ey: the adt header is just a "normal" node at the base address given to us by iboot
#asahi-dev · 2025-02-08 08:18
j`eycheck_offset could return a Result<>. then you'd write: ret = ADT::check_offset(offset)?;
#asahi-dev · 2025-02-08 08:16
j`eyyou can also use prop.is_null() instead of casting to a number and == 0
#asahi-dev · 2025-02-08 08:15
j`eywhats with check_header() using 0 as *const ADTNodeHeader>
#asahi-dev · 2025-02-08 08:02
chadmedoh its in the boot args
#asahi-dev · 2025-02-08 08:00
chadmedone thing im not too sure on is the ADT_MAX_SIZE stuff. surely theres a way we can get the actual adt size. how does the dumper know where to stop?
#asahi-dev · 2025-02-08 07:28
chadmedthe last bindings i did were glib<->Lua so this is kinda alien
#asahi-dev · 2025-02-08 07:27
chadmedhttps://github.com/chadmed/m1n1/blob/bindings/adt/rust/src/adt.rs am i on the right track here
#asahi-dev · 2025-02-08 01:54
chadmedis there any point to writing wrappers for some of these adt routines that are only ever called internally?
#asahi-dev · 2025-02-07 17:44
lena6oh wow usb works i don't need to fiddle with macvdmtool that's great
#asahi-dev · 2025-02-07 17:42
chaos_princessthen it should be much less annoying
#asahi-dev · 2025-02-07 17:42
yukaBut multicore init stuff isn't
#asahi-dev · 2025-02-07 17:42
yukaUsb is working
#asahi-dev · 2025-02-07 17:38
lena6back in december i remember reading that yuka's branch (https://github.com/yu-re-ka/m1n1/tree/t8132) got to the point of exposing the uart, but yes, i can get there, however annoying that may be
#asahi-dev · 2025-02-07 17:35
chaos_princessthough if you have hw uart, you can chainload from there, but you need to first progress far enough that m1n1 can speak to your dev machine over uart
#asahi-dev · 2025-02-07 17:33
chaos_princessfor early init - you will have to go via recovery every time
#asahi-dev · 2025-02-07 17:33
chaos_princessonce you have usb working, you will be able to chainload.
#asahi-dev · 2025-02-07 17:30
lena6alright so i have an M4 macbook pro and i want to get started with getting a patched m1n1 running with the uart. do i need to bless the m1n1 binary every time i make a change to it, or can i have the previous m1n1 chainload the next build and so on
#asahi-dev · 2025-02-07 11:14
j`ey:-)
#asahi-dev · 2025-02-07 11:13
chadmedits been a long day
#asahi-dev · 2025-02-07 11:13
chadmedi had the "size" member of the struct literally highlighted in kate...
#asahi-dev · 2025-02-07 11:13
chadmedlmfao the reason i asked about vec in the first place is because i thought "oh we dont know the size of this array"
#asahi-dev · 2025-02-07 10:55
chaos_princessand it does slice::from_raw_parts or something internally
#asahi-dev · 2025-02-07 10:54
chaos_princessmore fn get_value() -> &'static [u8]
#asahi-dev · 2025-02-07 10:54
chadmedso just like value: &'static[u8]
#asahi-dev · 2025-02-07 10:53
chaos_princesssince we do not rewrite the adt, probably &[u8], with probably even the static lifetime?
#asahi-dev · 2025-02-07 10:52
j`eyyou can use the pointer and then use a slice of &[u8] (once you have the len)
#asahi-dev · 2025-02-07 10:52
chadmedi was tempted to just get the pointer to it but that seems wrong and sus
#asahi-dev · 2025-02-07 10:51
chadmedadt bindings but im not sure on the best way to express adt_property->value, which is a u8[] in C land
#asahi-dev · 2025-02-07 10:49
chaos_princesswhat'cha planning?
#asahi-dev · 2025-02-07 10:45
chadmedoh cool that simplifies things a bit
#asahi-dev · 2025-02-07 10:40
chaos_princessno, we have an allocator, https://github.com/AsahiLinux/m1n1/blob/main/rust/src/chainload.rs#L8
#asahi-dev · 2025-02-07 10:05
chadmedim assuming we cant use alloc::vec::Vec in m1n1 right
#asahi-dev · 2025-02-06 14:01
intrestorim looking on enabling vrr as i discussed here earlier
#asahi-dev · 2025-02-06 14:01
chaos_princessjannau: iirc they were interested in development
#asahi-dev · 2025-02-06 14:01
intrestori mean seeing all the logs, using read32 and such
#asahi-dev · 2025-02-06 14:00
chaos_princessjust have backups, no matter whether you want to experiment with one or not
#asahi-dev · 2025-02-06 14:00
jannauwhat do you mean by "using m1n1"? for booting linux on an apple silicon mac via m1n1 you do not need a second computer
#asahi-dev · 2025-02-06 14:00
chaos_princessget backups.
#asahi-dev · 2025-02-06 14:00
intrestormy main device
#asahi-dev · 2025-02-06 14:00
intrestori'm not completely comfortable experimenting with my mac
#asahi-dev · 2025-02-06 13:59
j`eyif you only have 1 computer, you cant do it
#asahi-dev · 2025-02-06 13:59
intrestortho my main device is a mac
#asahi-dev · 2025-02-06 13:59
intrestormight have
#asahi-dev · 2025-02-06 13:59
j`eyintrestor: do you have another non-mac computer?

plus ›