Previous day | Jump to hour: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 | Next day

Seconds: Show Hide | Joins: Show Hide | View raw
Font: Serif Sans-Serif Monospace | Size: Small Medium Large

Click in the nick column to highlight everything a person has said.
The Logo icon identifies that the person is a core developer (has commit access).

#rockbox log for 2022-07-10

00:38:47 Quit munkis (Remote host closed the connection)
00:51:57 Join munkis [0] (~mendel_mu@ool-ae2cb229.dyn.optonline.net)
01:00
01:07:28 Quit massiveH (Quit: Leaving)
01:59:43***Saving seen data "./dancer.seen"
03:00
03:59:47***No seen item changed, no save performed.
05:00
05:41:21 Quit Galois (Ping timeout: 276 seconds)
05:59:52***Saving seen data "./dancer.seen"
07:00
07:36:16 Join Galois [0] (djao@efnet.math.uwaterloo.ca)
07:40:18 Quit Piece_Maker (Ping timeout: 276 seconds)
07:59:54***Saving seen data "./dancer.seen"
08:00
08:23:56 Quit Guest9490 (Changing host)
08:23:56 Join Guest9490 [0] (sid23779@fsf/member/yang)
08:24:01 Nick Guest9490 is now known as yang (sid23779@fsf/member/yang)
08:55:49 Join finkfox [0] (~finkfox@user/finkfox)
08:55:57 Quit finkfox (Client Quit)
08:57:27 Join NoTuff [0] (~NoTuff@dynamic-077-183-148-117.77.183.pool.telefonica.de)
08:58:54NoTuffhi there. i'm looking for a device currently on sale that I can put rockbox firmware on. any recommendations?
08:59:29NoTuffI found https://www.rockbox.org/wiki/AgptekRocker but that device doesn't seem to be for sale anymore, does it?
09:00
09:01:09NoTuffthere is also agptek rocker v2 with model number MC15B-2nd  ... but also not really for sale
09:03:11NoTuffand yes, I could use a "smartphone". unfortunately, google managed to break external sd card support ... https://issuetracker.google.com/issues/147619577
09:03:51NoTuffso yes, there is a need for rockbox (I last used with iPod5 decades ago ... )
09:04:56NoTuffps. does rockbox support bluetooth? in the case of agptekrocker? or any other device?
09:06:08sporkrockbox does not support bluetooth
09:08:38 Join amachronic [0] (~amachroni@user/amachronic)
09:27:23 Quit NoTuff (Quit: Ping timeout (120 seconds))
09:32:25 Join NoTuff [0] (~NoTuff@dynamic-077-183-148-117.77.183.pool.telefonica.de)
09:32:43NoTuffis it realistic that one day rockbox may support playback via bluetooth?
09:36:09amachronicon a hosted target, yes; on a native target, I'd say no.
09:39:25NoTuffamachronic, what do you mean with "hosted target"?
09:40:04amachronicsorry, that's the lingo for when rockbox is running on top of a host OS, usually Linux.
09:40:28amachronica "native target" is when rockbox *is* the kernel and OS.
09:42:15NoTuffis there already such a "hosted" solution out there?
09:42:43NoTuffnever heard of this befofre
09:44:33amachronicno, there's nothing at all in rockbox to deal with bluetooth yet
09:45:26amachronicthe reason it's easier on a hosted port is purely because Linux has bluetooth drivers and a bluetooth stack (BlueZ) which we could piggyback off
09:46:14amachronicwith the native port we'd need to write all bluetooth drivers ourselves and port a bluetooth stack / write one from scratch, which is a lot of work and hence unlikely to ever happen.
09:51:19NoTuffok I understand. so another way would be to attach a "bluetooth adapter" to a rockbox device, right?
09:54:24amachronicyeah, if you had something which took a line-in
09:55:59amachronicwith something like a usb adapter... you're looking at a similar problem as on-board bluetooth.
09:59:57***Saving seen data "./dancer.seen"
10:00
10:18:10 Quit NoTuff (Ping timeout: 252 seconds)
10:20:55 Quit Natch (Remote host closed the connection)
10:34:13 Join NoTuff [0] (~NoTuff@dynamic-077-183-148-117.77.183.pool.telefonica.de)
10:56:37 Join SonoSooS [0] (~SonoSooS@91-82-135-121.pool.digikabel.hu)
10:57:10SonoSooSgood (UGT) morning!
10:57:40SonoSooShactar|ant: sorry for leaving so fast, I had an audio driver crash, and also fell asleep, lol
10:58:43SonoSooSI would give a test .firm, but it's really broken atm... there is an insane amount of lag, scrolling is ultra sluggish, DOOM runs at like... a few frames a second, and audio playback takes like half a minute to start playing one song
10:59:22SonoSooSI have a feeling that I made a mistake when setting up the timer driver, and it runs 8x-10x slower than it should, but I still need to investigate
11:00
11:00:25SonoSooSthis has to be an issue on my end, as the 3DS is definitely in the top 5% of supported Rockbox devices in terms of raw power
11:01:13SonoSooSoh yeah, and forgot to mention, but I do read back the IRC logs, so not to worry
11:03:12SonoSooSI also keep forgetting that most functions in header files actually have vast documentation above them, I blame VSCode for now showing them
11:04:37SonoSooS* s/now showing/not showing/
11:06:26SonoSooSoh, also thanks gevaert\s for the logs, I did find some things in it which helped to mitigate the issues in the audio driver caused by buffering issues (backslash added to name prevent unnecessary pinging)
11:07:38amachronictwo random suggestions: check your LCD driver (may explain general lag) and your IO (may explain why starting playback is slow)
11:08:12SonoSooSyou're very right about the LCD driver, as that's what I have to use for audio sequencing :/
11:08:22amachroniclol :)
11:08:44SonoSooSthe audio device (CSND) has no interrupts, so I have to poll using CPU
11:09:04amachronicouch
11:09:28SonoSooSand since I have ran out of timers (all two of them, wow!), I had to resort to HSync interrupt
11:10:25SonoSooSas for IO, I am using the MMU to enable caching, as the main RAM (FCRAM) is absolutely damn slow
11:10:57SonoSooSI have tried to arrange the memory map in such a way as to avoid RAS/CAS switching as much as possible
11:12:05amachronicwell, rockbox is generally terrible about how it does LCD updates and I/O
11:12:16SonoSooSthe only architectural optimizations I have left are enabling IRAM support, and spawning Core1 to make use of the two more timers, and perhaps to enable Rockbox's coprocessor support
11:12:26SonoSooSOH, I see what you mean now
11:12:29amachronicLCD is optimized very much around simple LCDs where you can transfer bits & pieces of the frame
11:12:36amachronicso one frame −−> many little partial updates
11:12:56amachronici imagine the 3ds is oriented liek a typical gaming machine where you redraw every frame completely
11:13:05SonoSooSyeah uh... Rockbox doesn't support LCD rotating, and the LCD controller (besides on the very original 3DS modell) doesn't support horizontal flipping, so I have to flip the framebuffer on the CPU :D
11:13:43SonoSooS(the physical display is actually installed into the case rotated to the left)
11:14:35SonoSooS* note: don't know if Rockbox actually doesn't support LCD rotating, but I can't find anything inside of the source code regarding that, besides changing LCD stride from horizontal to vertical
11:15:09amachronicyes I was just thinking vertical stride might solve the rotation problem
11:15:28amachronicif you are memory bandwidth limited that could help a lot
11:16:10amachronicanyhow for I/O, almost all I/O is done one sector at a time
11:16:11SonoSooSvertical stride sadly doesn't help, as I still need to horizontally flip the framebuffer
11:16:34amachronicthe only I/O that is done in big chunks is loading stuff into the audio buffer
11:16:51SonoSooSnot here :P
11:17:02SonoSooSthe audio is fed in chunks of ~3-8samples
11:17:17SonoSooSotherwise the hardware will race the CPU, and will play garbage
11:17:37SonoSooSbut can't do greedy buffering either, otherwise Rockbox will enter a kill-restart loop on the PCM playback
11:18:05SonoSooSeven though I have literally allocated 16Megs of RAM for the audio buffer
11:19:10amachronici think you're confused about the pcm architecture, the PCM buffers you get at the HW level is in smallish chunks (around 4kb IIRC)
11:19:21amachronicthat's what pcm_play_dma_start() gets
11:19:46amachronicthe audio buffer stores files for decoding on demand
11:19:47SonoSooSyou'd be correct about my confusion, as I'm doing Rockbox porting by literally inspecting the already existing drivers, and just bruteforcing things until it works
11:20:01SonoSooSI did find that I needed to increase the buffer size in pcm_mixer.h
11:20:03amachronicyes same here our docs are crap
11:20:04SonoSooSMIX_FRAME_SAMPLES 16384
11:20:17SonoSooSthe docs aren't crap, they are non-existant on the wiki
11:20:27SonoSooSthere are docs on most functions inside of the headers
11:20:37SonoSooSbut VSCode decides that they don't exist
11:20:48amachronicexcept when it's wrong or out of date :)
11:20:49SonoSooSso I keep forgetting to inspect the headers for docs
11:21:03SonoSooSyeah, I found that out the hard way...
11:21:13SonoSooSlol, speaking of out-of-date
11:21:29SonoSooSI managed to make Rockbox build on Windows with gcc 5.3.0
11:21:53SonoSooSabsolutely no issues regarding the setup, everything works fine besides of the bad performance
11:23:06SonoSooSI know that the wiki says to use some awfully old version, but I literally had to reverse-engineer the binary so many times, and did not find any anomalies, it compiles just fine
11:23:45amachronicyeah the danger is mainly in newer compilers exploiting undefined behavior and breaking things
11:24:16SonoSooSOH, you made me rememeber that it is indeed true, when I tried to port a project of mine from gcc 5.3.0 to gcc 8.1.0
11:24:24SonoSooSit just, completely died
11:24:32SonoSooSand had a bajillion compiler warnings
11:25:25SonoSooSmy guess is that that wiki page is made for users compiling Rockbox, not developers
11:28:01amachronichow much IRAM have you got?
11:28:16SonoSooSa bit less than 512k
11:28:32 Quit NoTuff (Quit: Client closed)
11:28:33amachronicsounds like you need to use that then
11:28:50SonoSooSwell, technically 1Megs, but the lower half is allocated to the DSP (not in use)
11:29:11amachronican audio DSP?
11:29:39SonoSooSthe reason I'm not using the DSP is because the blob is proprietary copyrighted, and the weird shared memory architecture and the DSP pipe is currently out of my capacity to implement
11:29:46SonoSooSyeah, it does have an I2S line
11:29:58amachronicoh, I see.
11:30:47SonoSooSwhereas the simple audio hardware is literally... pointer, length, set it to loop forever, and make a ring buffer driver to feed the memory in front of the FIFO at all times
11:32:18amachronicmaybe you'll need to add double buffering in the PCM layer
11:32:40SonoSooSit is already double-buffered
11:33:16SonoSooSjust the default buffer size (MIX_FRAME_SAMPLES 256) is way too small
11:33:17amachronicIIRC it'll only prepare one mix buffer at a time.
11:33:27SonoSooSit actually kickstarts two
11:34:06amachronicyes there's two buffers but one is in use by DMA at all times and we ping-pong back and forth
11:34:38SonoSooSah yeah, fair enough
11:34:43amachronicif you had three (so two lined up for the HW to consume at any moment) then you'd have greater latency, right?
11:34:54SonoSooSit even says so in the comments: "Hosted targets need larger buffers for decent performance due to OS locking/scheduling overhead"
11:35:01SonoSooSoops, wrong comment
11:35:13SonoSooS"Assume HW DMA engine is available or sufficient latency exists in the PCM pathway"
11:35:29SonoSooSyeah, more latency
11:35:35amachronicwith just two buffers you need to kick off DMA for the next buffer before the audio FIFO finishes playing the previous buffer
11:35:48amachronicin your case I'd think you don't have enough time to copy things into the ring buffer
11:36:01amachronicunless you had the extra latency
11:36:18amachronicusing IRAM for PCM mix buffers will also help
11:36:19SonoSooSyeah, I'd need to crank up the buffer size significantly to be able to drop the HSync interrupt
11:36:35SonoSooShmm
11:36:48amachronica lot of our older targets use IRAM extensively to get good performance
11:36:54amachronicsome even have an IRAM framebuffer
11:37:02SonoSooShow much IRAM do those targets have?
11:37:12SonoSooSI only have a bit less than 512k
11:37:37amachronicthe as3525 (sansas) has 320k
11:37:53SonoSooSgeez, I guess I'm really spoiled by the hardware then
11:37:56amachronici.MX targets have 32k, 256k, or 512k depending on the model
11:38:19SonoSooSyeah, I have definitely majorly screwed up my driver layer thne
11:38:26SonoSooS* s/thne/then/
11:39:09SonoSooSI highly doubt Rockbox would run this awfully on an ultra-strong(tm) hardware, while it runs just fine even on the crappiest of hardware
11:39:17SonoSooSso it has to be my fault
11:40:02SonoSooSI have plotted the timer interrupts on the top display, and I barely count 8-16, which makes me think that I have configured the dividers incorrectly
11:40:19SonoSooSI still need to read the docs on the timer and the ticker, but I keep forgetting
11:40:45amachronicand double check your macros for typos!
11:40:58SonoSooSI don't think I'm using any macros, except for FBPTR
11:41:25amachronici mean whatever you use for register fields etc.
11:41:47SonoSooSohhhhhhhhh, I'm using my drivers I made for my own kernel, and they have been extensively tested, and they work just fine
11:41:53amachronici was one bit off and screwed up one of my own timers on the x1000
11:42:07amachronic(in my defense the HW manual displayed the wrong bit field widths...)
11:42:08SonoSooSthe problem is definitely in the integration layer, where I connect my drivers with Rockbox
11:42:37SonoSooSwell, except for a compiler error inside of the CODEC init  code
11:43:02SonoSooSCODEC init is highly timing-sensitive, so much so, that simply just using a different compiler ruins it
11:43:10 Join Natch [0] (~natch@c-9e07225c.038-60-73746f7.bbcust.telenor.se)
11:44:44SonoSooSbut yeah, I have made tons of typos in my interfacing code due to my reduced capacity
11:44:54amachronicwell, good luck. I gotta go now. hopefully you'll manage to get rockbox running well on such a weird device!
11:44:54SonoSooSespecially the MMU
11:45:11SonoSooSthank you, good well to you as well!
11:45:27amachronicthanks, bye
11:45:29 Quit amachronic (Quit: amachronic)
11:59:58***Saving seen data "./dancer.seen"
12:00
12:43:11hactar|antoh hey SonoSooS
12:43:53SonoSooShello
12:45:05SonoSooSI'll need to investigate why I'm still getting awful performance, but I can upload a test build if you really need it
12:45:55hactar|antsure i'll check it out
12:46:10SonoSooSlet me make Rockbox + codecs + DOOM
12:46:13 Quit akaWolf (Ping timeout: 244 seconds)
12:46:30hactar|antlol doom running in rockbox on 3ds
12:47:17SonoSooSit does work, but I can't figure out how to map the keys properly, as the 3DS has way more keys than Rockbox DOOM makes use of
12:48:06 Join akaWolf [0] (~akaWolf@akawolf.org)
12:52:32SonoSooSwell then, or it just data aborts
12:55:12hactar|antdo you have an n3ds?
12:55:43SonoSooSI have old3DS (Zelda), old3DS (black, broken hardware, but still works somewhat), new3DSXL (Zelda), 2DS (white-red)
12:56:03hactar|antoh wow ok lol
12:56:10hactar|antis performance noticeably better on n3ds?
12:56:24SonoSooS(I make a lot of homebrew and other things for the 3DS)
12:56:30SonoSooSnope
12:56:44hactar|antanything i'd recognise?
12:56:46SonoSooSbecause I don't have any new3DS-specific drivers yet, like CPU frequency adjustment, or L2 cache
12:57:21hactar|anti think luma allows you to force the faster cpu
12:57:24SonoSooSHzMod/HorizonM, TWPatch, TerraInvedit(Threedee|Droid), OCDM, idk what else
12:57:27hactar|antbut yeah, that obviously shouldn't be needed
12:57:37SonoSooSyeah, I'm not runninng Rockbox in hosted mode
12:57:41SonoSooSthis runs baremetal
12:57:53SonoSooSso it's a .firm, not a .cia/.3dsx
12:58:08hactar|antoh wow lol
12:58:09hactar|antok
12:58:26SonoSooSif I had made it hosted, it would run even worse tbh xd
12:58:59hactar|antwait does that mean it requires a 3ds flashcard, cause i don't have one. i just use cfw
12:59:54SonoSooSyou can use anything which can launch a .firm, you can use Luma's chainloader (hold START during power on until screen turns on), although personally I use fastboot3DS installed to FIRM0
13:00
13:01:37 Quit skipwich (Quit: DISCONNECT)
13:03:18 Join skipwich [0] (~skipwich@user/skipwich)
13:09:46 Part Chewi (I'm outta here!)
13:10:54SonoSooShactar|ant: I think I have included everything? https://puu.sh/JaoMV/b901d15588.zip
13:13:03SonoSooSwell, except the UI theme, I forgot that
13:14:55SonoSooSoh yeah, warning: volume adjustment doesn't work due to compiler errors, so you might 1) not have sound at all, 2) have extremely loud sound at max volume, 3) hav extremely quiet sound with no adjustment
13:27:34hactar|antlol ok, i'll check it out
13:28:09hactar|antwait, agb.firm?
13:28:28SonoSooSyeah, ignore that filename, it's complicated why my build system outputs that name
13:28:48SonoSooSif you look into the .firm, there is a whole .exe file (yes, .exe on 3DS) embedded into it for SDCard support
13:32:05speachyc
13:41:31hactar|antwhat are the controls?
13:42:24hactar|antonly button that seems to do anything is A
13:42:47SonoSooSfor DOOM: good luck. otherwise, it's really jank: LEFT/RIGHT navigate in the menu, A to enter, B to back, X and Y do something, and the rest of the controls are completely missing, as it' low-priority for me currently
13:43:09SonoSooSmy highest priority atm is trying to figure out why the performace is so abysmal :/
13:43:17hactar|antso no way to scroll?
13:43:23SonoSooSLEF/RIGHT to scroll
13:43:33hactar|antoh weird i swear i tried that
13:43:35SonoSooSno CPad driver btw, use DPAD
13:43:44SonoSooSalso hold it, there is a huge amount of lag
13:44:03hactar|anti might have just been tapping
13:44:11SonoSooSyeah, that doesn't work yet
13:44:49SonoSooSI could use HID interrupts to latch buttons until they are read out, but I'll do that after fixing the performance issue
13:46:14hactar|antit seems to just give up on flac
13:46:24hactar|antmp3 it took a while to start and was glitchy for 10 seconds but now is playing fine
13:46:58SonoSooSyeah, the PCM driver is ultra jank sadly
13:47:21SonoSooSdue to my lack of capacity, my friend with no 3DS had to write it for me
13:48:16SonoSooSsometimes it glitches out because the hardware reads way too much ahead
13:48:19hactar|antlol
13:49:40hactar|antwell this is a pretty neat start
13:49:55SonoSooSyeah, been working on it since almost a month or so
13:50:17hactar|antunfortunately i can't really provide any technical help but i am happy to play around with builds and try to break them
13:50:49hactar|antwould be very cool to see this as a proper hosted homebrew
13:51:01SonoSooSyeah, everything is held together by faith in the compiler, so it's too easy to break
13:51:04hactar|antthere are a lot of possibilities with two screens but that's quite a ways down the line
13:51:19SonoSooSyeah, there is no way I'll make this hosted
13:51:26SonoSooSway too janky
13:52:15SonoSooSthere is way too much overhead in threading
13:52:31hactar|antsomeone could, surely
13:52:48hactar|anti occasionally used my ds lite as a music player before i got an ipod
13:52:49SonoSooSI mean, to be fair my wording gives it no mercy
13:52:59hactar|antoh man, that thing had a terrible sound chip
13:53:07SonoSooSit *is* possible, but for so low reward that I won't do it, I think
13:53:27SonoSooSah, so I bet you used Moonshell
13:53:37SonoSooSalso you're wrong, it wasn't that terrible
13:53:54SonoSooSin fact, I'm using basically the same sound engine as the DS has
13:54:01hactar|anti tried moonshell but i liked dsorganize better
13:54:11SonoSooSah, never used that one
13:54:54hactar|antdso had a music player AND a web browser AND an irc client, what more could one want?
13:55:00SonoSooSbut yeah, GBA had timer + PCM FIFO DMA, DS had that hardware combined with more channels into "SND", then some minor adjustments were made to the hardware, and embedded into the 3DS ("CSND")
13:55:02hactar|antereader too
13:55:22SonoSooSlol damn, web browser *and* IRC client
14:00
14:00:01***Saving seen data "./dancer.seen"
14:00:52SonoSooSwell okay, to be fair the 3DS indeed has a much better audio system
14:01:18SonoSooSthe DS still had that awful speaker PWM (afaik) as from the GBA, which needed BIAS voltage, and other awful stuff
14:02:50SonoSooSwhereas the 3DS uses a proper CODEC chip, and with the CSND hardware, it can do ~47.605kHz sample rate, or ~32.72849kHz if using the DSP (configurable to also run at that ~47kHz, but it breaks some stuff in userland)
14:03:39SonoSooSalthough the CSND hardware itself can sample up to ~1MHz before it hangs, but it's resampled to that ~47kHz before actually being sent to the DAC
14:17:46hactar|anti thought the ds used a low sampling frequency
14:23:45SonoSooSit definitely wasn't lower than 32kHz
16:00
16:00:03***No seen item changed, no save performed.
16:59:23SonoSooSah, it seems like the enormous file loading time is caused by prebuffering - there is like ten seconds of buffer fill before the audio starts playing
17:00
17:55:41 Quit SonoSooS (Ping timeout: 244 seconds)
18:00
18:00:06***Saving seen data "./dancer.seen"
18:27:28 Join S|h|a|w|n [0] (~shawn156@user/shawn/x-4432647)
20:00
20:00:09***No seen item changed, no save performed.
22:00
22:00:11***No seen item changed, no save performed.

Previous day | Next day