f_ changed the topic of ##raspberrypi-internals to: The inner workings of the Raspberry Pi (Low level VPU/HW) -- for general queries please visit #raspberrypi -- open firmware: https://librerpi.github.io/ -- VC4 VPU Programmers Manual: https://github.com/hermanhermitage/videocoreiv/wiki -- chat logs: https://libera.irclog.whitequark.org/~h~raspberrypi-internals -- bridged to matrix and discord
bonda_000 has joined ##raspberrypi-internals
Stromeko has quit [Ping timeout: 255 seconds]
Stromeko has joined ##raspberrypi-internals
<bonda_000> hello
<bonda_000> :clever found something that didn't decompile properly
<bonda_000> switchD_600065bc::switchD
<bonda_000> 600065bc 8a 00 switch.b r10=>switchD_600065bc::switchdataD_600065be = 3h
<bonda_000> in the bootrom
<bonda_000> it says
<bonda_000> WARNING: Could not find normalized switch variable to match jumptable
<clever> bonda_000: that opcode is always followed by an array of byte offsets
bonda_000 has quit [Ping timeout: 252 seconds]
bonda_000 has joined ##raspberrypi-internals
jcea has joined ##raspberrypi-internals
<bonda_000> so whatever follows that opcode I should 'clear'?
<clever> bonda_000: clear, and then change it to bytes, but its fuzzy on how many bytes
<clever> ghidra will automatically create labels for where the switch can jump
<bonda_000> if the directory says
<bonda_000> drwxdrwxdrwx
<bonda_000> it has full permissions?
<clever> if it says that, then something is seriously wrong
<clever> it would never have 3 d's
<bonda_000> I'm trying to upload my new structs to the generic_clib
<bonda_000> my bad
<bonda_000> a single d
<bonda_000> as in full permissions
<clever> then yeah, that is full permissions, including any other users on the system
<clever> which is generally unsafe
<clever> the default permissions should generally be fine
<clever> Ghidra/Framework/FileSystem/src/main/java/ghidra/framework/store/db/PackedDatabase.java: "Read-only DB directory lock, file update not allowed: " + packedDbFile);
<clever> the error comes from here in the source
<bonda_000> I'm supposed to make those directories?
<clever> if (isReadOnlyPDBDirectory(packedDbFile.getParentFile())) {
<bonda_000> ghidra folder has full permissions on all directories and files
<bonda_000> on my machine
<clever> public static final String READ_ONLY_DIRECTORY_LOCK_FILE = ".dbDirLock";
<clever> do `ls -la`
<clever> * Presence of the directory lock file will prevent the creation or
<clever> * modification of any packed database files contained within that directory
<clever> * or any sub-directory.
<bonda_000> -rwxrwxrwx 1 bimbom bimbom 1590849 Apr 10 15:39 generic_clib.gdt
<clever> it has nothing to do with the unix permissions
<clever> what else did `ls -la` reveal?
<bonda_000> -rwxrwxrwx 1 bimbom bimbom 1533222 Apr 10 15:39 generic_clib_64.gdt
<clever> anything else?
<bonda_000> drwxrwxrwx 7 bimbom bimbom 4096 Apr 10 15:39 ..
<bonda_000> drwxrwxrwx 2 bimbom bimbom 4096 Apr 10 15:39 .
<bonda_000> only those four
<bonda_000> maybe there are hidden files?
<clever> thats what -la shows
<clever> ah, but its recursive
<clever> `find ~/Desktop/ghidra_11.0.3_PUBLIC -name .dbDirLock`
<bonda_000> ha
f_ has joined ##raspberrypi-internals
<bonda_000> there is one
<bonda_000> in ghidra_11.0.3_PUBLIC/Ghidra
<bonda_000> /home/bimbom/Desktop/ghidra_11.0.3_PUBLIC/Ghidra/.dbDirLock
<clever> remove that to make things r/w
<bonda_000> it's just a text file that says
<bonda_000> "lock file to prevent modification of core ghidra scripts"
f_ has quit [Quit: To contact me, send a memo using MemoServ, PM f_[xmpp], or send an email. See https://vitali64.duckdns.org/.]
f_ has joined ##raspberrypi-internals
<bonda_000> there are a lot of references to ISP regs that are not in the android rhea bcm stack
<bonda_000> uVar1 = ISP_7ea00000.RESERVED33[42];
<bonda_000> some of it does match
<clever> yeah, its probably a different version of the ISP
<bonda_000> howeve
<bonda_000> r
<bonda_000> there are two folders
<clever> there is likely a 3rd one, for the bcm2835, that we dont have
<bonda_000> diff brcm_rdb_isp.h ../rdb_Bx/rdb_Bx/brcm_rdb_isp.h
<bonda_000> shows a lot of differences
<bonda_000> they said there are three architectures
<bonda_000> rhea, hawaii and one more
<bonda_000> oh I think it was Java
<bonda_000> rhea, hawaii and java
<bonda_000> and there is also
<bonda_000> brcm_rdb_isp.h and brcm_rdb_isp.h.new
<bonda_000> yup the hawaii brcm_rdb_isp.h.new has those I was missing
<clever> ./doit
<clever> oops, wrong window
bonda_000 has quit [Ping timeout: 252 seconds]
f_ has quit [Quit: To contact me, send a memo using MemoServ, PM f_[xmpp], or send an email. See https://vitali64.duckdns.org/.]
bonda_000 has joined ##raspberrypi-internals
bonda_000 has quit [Ping timeout: 252 seconds]
Ad0 has quit [Ping timeout: 268 seconds]
Ad0 has joined ##raspberrypi-internals
Guest32 has joined ##raspberrypi-internals
Guest32 is now known as Guest1234
Guest1234 has quit [Quit: Client closed]
Guest32 has joined ##raspberrypi-internals
Guest32 has quit [Client Quit]