About20 years old developer with something like 11 years of experience in C. I love programming <3 And i also love Chemistry and Physics and Math :) And I love Cryptography and Steganography Also I love Linux !!!! Get rid of all that bugs !
SkillsJava, C, C++, Arduino, Bash, Linux, Android ROM porting, lot of shit TBH. (Just not python, I hate that shit)
LocationIn a Galaxy far far away.
Joined devRant on 5/13/2016
Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
//Unusual Haxk20 real rant :O
Ah yes you all love it.
You in a project group chat agree to change your current development branch to match the naming scheme and rebase that to master if needed.
You have manifest file for cloning all the required repos specifying branch for each one.
One guy changes them but forgets about half of the other ones. (To his credit only 1 caused breakage but still)
He forgot one that was needed and tadaaaaaaaaaaaaaaaaa entire android build is fucked.
So in the time the android build would finish i had to check each repo if it has the new branch and change all repos that had it to it.
My high school networking project. I should resurrect it.
It was basically device using LoRa for peer to peer communication between 2 custom boards that connect to phone via Bluetooth.
*Haxk20 slaps himself to check if he isnt dreaming.* You will see why.
So i go to twitch sometimes. And you know they sometimes have giveaways. Like you say yeah sure you cant win.
So there was giveaway for Ryzen 7 3700X.
I mean sure why not enter.
Days go past and im like IDK when they are rolling it.
So i join today on their stream just to be welcomed by "HERE HE IS" GG MATE.
WTF is happening i think.
So they explained that i won the giveaway and that they will be sending it my way very soon. Now if thats not crazy IDK what is.
And thats not the only thing that happened today. Sadly i cant talk about that. Lets just say that made my day and i officially made it best day of my life. And now this. Im officially saying it. BEST DAY OF MY FUCKING LIFE.22
Mainline it they said. It will be fun they said.
If i find that this piece of shit booted up at least the slightest bit and it was just some tiny issue i will throw it all away. I swear to fucking god. If this shit phone boots mainline i will throw it out of the window. Cause its not worthy of mainline.
UART should be as easy as just telling in DTS to which address to output shit. Bootloader should figure shit out next. I got UART on routers this way. Even on 1 phone. This one ? NOOOOOOOOOO1
Ah yes. Do that please one guy in our dev group says. OK easy. Oh i forgot. Do it for all platforms of phones we support and then also do it in all individual devices.
So we have 7 platforms. 1 platform has minimum of 2 devices. Some 3 or more even.
All in all its around 28 repos.
And i have to PR to all of them basically the same thing just slightly modified.
I cant anymore. Im done. How the F.
Friend calls me that he sent his resume to like 100 companies and none of them even invited him for interview. Which seemed kinda crazy. So i asked him to send it to me so i will take a look at it.
I look at it. Most of the stuff was OK.
Then i have. Skills:
Web site programming (squarespace): Pro.
OK wait what even ?
Are you fucking serious ?
So i asked him where he was applying.
For web developer.
i ask him. Do you know HTML or CSS at least ? NO what is that ?
At this point i wasnt sure if im supposed to laugh or cry TBH.
I mean are you fucking serious ??????????
I explain to him calmly that well squarespace wont et you a job like web developer.
I fucking hope he is able to learn at least fucking HTML.
I mean im pretty sure i could teach an 6 year old HTML.8
Well 0.1mm nozzle on 3D printer is surely fun. I mean the detail out of this little shit is mind blowing. Sure i have to print at 0.05mm layer height but still it takes lots of time to print small stuff but the layers are INVISIBLE.
Maybe just a tiny issue is that the bed has to be ULTRA leveled and the layer height needs to be really perfect or nothing will stick to it.3
So today i got B2 english certificate. Meaning that i know english at B2 or better level. Was kinda surprised how easy it is. Lets get C1 next year. Because well why not ?34
So we are crashing when uncompressing the fucking kernel by the looks of it.
2 solutions to this it seems. Either you fix it somehow which i dont have time to do and well I dont want to port U-boot totally.
Second one is well kinda crazy but normal.
If it crashes in uncompressing the fucking kernel then well dont compress it at all.
So i grab the uncomp image.
12.3MB Well shite.
I pack it in boot.img and its 14.9MB and partition is 16MB. Well this is close AF.
Anyways. I flash it. Boot it and no UART as expected. I expected data abort tho. Nothing like that tho. :O
So now either this shit isnt loading at all. Or i just dont have UART.
Sadly i have no way of testing that. So either i can make UART work and then i will know that yes it works or well IDK.
*Haxk20 not so techy stuff :O*
So in my country its the time where you find out if you have been accepted to the unis you applied to or not.
I have gotten the mail 2 days ago.
And to not make it an huge post
I applied to one of the best universities in my country that is for computer science fields.
And well i have been accepted.
IDK how i managed to do it. But i did it.
From what i heard math on high school compared to this is out of this fucking world. So yeah i will surely be having few funny nights there.
Good luck to anyone who is still waiting for the answer if they have been accepted or not.23
Xperia P mainline:
UART doesnt work. Fucking bootloader doesnt set the L2 cache and doesnt lock it.
Kernel crashes right after uncompressing.
I had no clue what was wrong since UART doesnt work and i was thinking its just something wrong with the file since Data Abort. But thats kernel crashing before it can segfault or panic and just drops and bootloader tells you something went horribly fucking wrong.
So now i need to port u-boot which is kinda OK considering there is port of it already for the processor. Oh the same UART shit. What a surprise. So i need to get UART working. USB working so i can flash kernel via u-boot and then i can mainline this shit. Just WOW.
Mainline XPeria P progress update:
Non booting. No UART. Nothing.
Kernel seems to Data Abort even before uncompressing or whatever.
So far i want to burn it all.5
So you mainlined your phone to the point where UART is working. Amazing right ?
You flash it.
You boot it up and basically nothing happens.
You recheck the adresses and GPIO pins in device tree file. No its all correct.
Then you realize it.
The phone is old and the bootloader has no clue what dts file even is so no luck there. What do you do ?
You append the dts to the kernel image.
Isnt it wonderful that you can make 1 file from 2 and use that as kernel which then takes the dts file and uses it instead of relying on bootloader to do all the shit work for him ? Yeah it is absolutely AMAZING and saves me ton shit lot of time because if it wasnt for this i would be porting U-boot at this point which i really really dont wont to do at this point. Why not ?
Its kinda simple.
When mainlining a phone that doesnt have dts support the bootloader has to set the regulators to the correct values and shit otherwise the phone would die. And the amazing thing is that if i dont specify that regulator in dts it wont be set to anything and it will be at the value bootloader set it to. So its kinda like a safebox for me at this moment.
If i replaced it with uboot (Which i will do once the phone is working on mainline kernel) then the bootloader would not have all the regulators and it will be a shit mess and the phone would most likely die.
Isnt mainlining so much fun ? It IS.3
Do you know when you got into like a real low level programming ?
Not when you learn assembler because that takes ages to learn to the skill level where you can actually use it properly.
For me it is writing device tree files in Linux kernel. One typo and the mobile phone is literally dead.
Oh I accidentally typed one more 0 to the voltage in regulator. Yeah goodbye phone.
You have to be careful as fuck and read the shit six times before you flash it on the phone.
And oh God mainlining a phone. It surely is fun seeing the phone boot the same exact kernel version my PC uses. But dang it is hard.14
So we had a nice chat with few devs and one dev said that i should just swap HDD cause i needed it at the moment. So i did.
Me the freaking idiot at the moment didnt realize that no the 0.5Tb HDD isnt SSD and that it needs to stop rotating otherwise there can be hardware damage and not umounting it will lead to issues.
So i disconnected the HDD. (Bless servers for this amazing thing called hot pluggable drive bays. Lovely thing i tell you) and after fixing it i plugged it back in.
Oh what is this ? Input output error ?
Ohhh Fuck. (This is the moment i realized i fucked up 0.5Tb of data).
Me the lucky idiot at the moment decided to backup all the data to second HDD since i knew the drive bay had to be fixed so i did that before doing this.
So what did i learn ?
Unmount the drives, Sync them, Stop the drive spinning. Then unplug them.10
//Before you go i knew this was you. Yes it is Haxk20
I grab 2 devices i have at home. I port postmarketOS to both of them.
One fails to boot because if their shitty fucking kernel.
Enabling virtual terminal crashes ramdisk loading as if that makes any fucking sense but oh well.
One boots up to OS fine. Small issue is touchscreen but can be fixed i guess with little bit of magic.
Anyways. Implement some crap to the ELF support for pmOS and then mainline 1 device.1
I mean this is the basic of the basic you need. Yet when you learn it.
Oh boy you have the power.
No silly color schemes crap or some fancy shit.
It will let you do your work.
NANO TEAM ASSEMBLE.13
One would expect that bitcoin isnt used that much anymore. But one would be correct. It is getting slowly replaced by other currencies as the one and glorious Monero. I was today doing my fair share of exchanging to get hella good prices and well as one does make some money also but then i saw the fucking fee for bitcoin transaction. 0.0005BTC
Do you know how much that is ?
I aint giving someone 3.5 for 1 fucking transaction. So i used second exhange where the prices were finally OK and i could get XMR exchanged for BTC instantly and get myself some sweet money.
We really need to get monero up there. Cause its private, secure to the point you cannot see how much was in 1 transaction without key. WOW.
Also the fee is so much better.3
PostmarketOS rant 4 or whatever it is now.
I wish i could say it boots up and all but thats not the case.
enabling CONFIG_VT breaks reading ramdisk completely. So no Logo or booting the fucking shit.
What do you do in this case ?
Well one could spend the time finding the issue and fixing it.
Which would take lot of time.
The second option is mainline bitches.
Since this SOC is very well supported thats the only reasonable option. Mainline the phone and it will boot up for sure.
Also running linux-next on phone ? Fuck im haxk20. COUNT ME FUCKING IN.
And since its basically free time whatelse would i do at home ? LUL2
postmarketOS rant 3:
This is not a rant anymore. IT BOOTS US. IT FUCKING BOOTS UP.
Compiling final version with fixes and this one should get me ssh over USB and actually get a working shell on it.3
PostMarketOS port rant 2:
Ouuuuu fuck this will be fun.
Got the device to show a logo. Doesnt boot up but who fucking cares. I got logo LUL.
And on top of that. I implemented the ELF support in the PMOS code so i dont have to make my own image like crazy.
Its on review still and have to fix few things tomorrow on it but it works which is most important.
Next time i will post another one of these i will have UART adapter here (Not arduino that i cant use because i dont have the resistors needed to make 5V to 3.3V. FFFFFFFFFFFFFFF)
Then we can debug the shit to hell.2
postmarketOS port day uhmmmmmmmmmmmm 3.
Surprisingly to get a port of it you just need kernel which is hella awesome. What isnt awesome is the boot image of the 2012,2013 sony devices.
This is gonna get technical. If you dont care about it just skip it.
So sony decided that using ELF format for boot image is good idea. And TBH they were kinda right. ARM processor after all can execute ELF natively and work efficiently. Whats the issue then you might ask. Well kinda simple. Normal AOSP boot images are not ELF format. (They kinda are but arent at the same time. Lets just say they contain ELF image at some point). This is of course the google way. Overenginner everything you can.
So why is the ELF image format the issue ? Well to produce this elf image you need special script provided by sony that can make ELF format boot image that you have to compress properly afterwards. OK this sounds OK so whats the issue ? AOSP or well android sources do not support this out of the box. What we need to do is to create a custom way of creating that boot image. Which isnt hard but is just extra unneeded work.
Now when you flash the image it all works as expected.
But what happens if the format isnt right ?
Device will just show blank screen and reboot and so on forever (Or well until battery dies).
Why it cant boot other images is kinda self explanatory. Its different format. OK so it wont boot anything other then custom boot image OK.
Now what does postmarketOS (PMOS from now on) do ?
Well it creates basic AOSP bootimage with custom ramdisk. Which is all fine on most devices. Except here of course.
So that wont boot.
You may just say why dont you just convert it ? Well it isnt that easy. Each elf file has its own header. Which is for that kernel and etc. If it doesnt match eyyyy no boot. So we cant just convert it that easily.
Why not just use the script ? One could do that of course. ( i have not yet done that as its almost midnight and i have test tomorrow). Issue here could be that it still doesnt boot which would mean that something else is wrong. It will most likely work tho. (hopefully)
What i would need now is UART. (Yes phones have UART if you didnt know)
What is that ? Way to communicate and debug the kernel when something is wrong to the point where nothing works. Issue is my UART to USB converter is who knows where and the new one isnt going to be here that soon.
Thats all for now i guess. Long one i know. But well that is the behind the scenes of those kind of things. It isnt as simple as one may think sadly.
It woudlnt be my first and sadly not even last time i would get PM saying to hurry the development or some other shit like that. (Yes people are like that). And when you get issue it isnt as easy as opening duckduckgo and searching it as most likely it will return something which is far from what you are doing.
So if you are that kind of person that sends PMs to devs on XDA to hurry the development or asking when its gonna be done. STOP. Please just stop. We have real life too (I know its hard to believe but well its there) and doing this isnt the only thing we do. Its gonna be done when its gonna be done. And i hope this is gonna at least put some perspective for those people to not send those kinds of messages to us. (We read them. We just dont reply to shit)
TL;DR Sony decided to use different format of bootimage on 2012/3 devices which is pain to generate properly.2
I just found out that my old phone i used to work on has mainlined CPU. Also a port of uboot. Sure its for samsung but well its just few registers and GPIOs. Ohhhhh yeah. This is happening. Xperia P will get postmarketOS running. And most likely even Arch linux to tickle my fancies8
I can't believe it.
Actually getting more fps.
My eyes are not lying. I checked twice to be sure.
And now unredirecting support for 3.38 mutter is in place it will be even more amazing.
What a time to be alive.4
This is a simple rant.
Many will not understand this rant.
Those who understand it will wish me the best of luck and may even wish me that my eyes dont burn and they will be very very sorry that i have to work with it every single day.
Now to the rant.
It is very simple.
Those 2 words tell you everything you need to know.4
Bloddy amazing. Libffi got updated and my shit fully broke.
Tried restart. Laptop was dead. Resurrected it. And now GUI breaks. Fuck this fucking piece of shit day. Fuck this. Good night.10
Got some PETG for my printer and so printing the face shields begins.
Printed one and looks decent. The filament is cheap AF and behaves like shit but it will do its job.
So i just placed 12 of them on top of each other and started printing them. 3 printed and 4th is in the process. 25hours of printing BTW. This is one big ass print and im not even close to being done. Goal is to reach at least 100 face shields. Considering its 25h for 12 of them it should be few days. Hopefully the new 0.6mm nozzle will arrive soon so i can pump so much fucking filament to the printer that it will go nuts. Oh yes it will be glorious. Also as an experiment i got the 1.2mm nozzle. So you know. BIG PRINTS. Oh yes also grabbed the 0.1 and 0.2mm nozzles. It will be crazy.2
So in 3D printing community prusa is just the best printer there is for the money. I cant argue with that.
But they are making their own filament. Prusament.
And all my friends with 3D printers are using it and saying how amazing it is and all.
So i bought 3kg of it just it was cheap at the moment. I bought only 1 type which was mistake from my side but oh well. (Galaxy black if you are wondering).
Started printing it. Nothing sticks to bed. Huh weird. Cleaned it. Nothing. Huh. Releveled. Nothing. Well shite this is not good.
By some fucking magic all the prints started sticking after second print. Nothing changed BTW.
It looks amazing when printed i must give it that. But i printed upgrade for my printer and there is a little stress on the part as can be expected. I thighten it and it literally snaps in half on me in the layers. WTFFFFFFFFFFFFFFFF.
So i did a test. Printed 100% full cylinder. I could snap it in hands and the layer adhesion is basically shit for a PLA.
I tried printing higher temp (I used 215 normally) and still the same issue.
IDK if its just this specific filament type or all the colors are like that (I will buy different type as it still produces amazing prints that look amazing) and i will see if its any better but i had to use creality filament to get parts that actually dont snap in half on me.
I will upload a new camera HAL. You will just port it over they said. It wont be that hard they said.
They were wrong I say.
Day 5 of camera work: Im closing on on the issue. We are not processing the data and it's overloading the bus. I have no clue how to make it process the data.
New report tomorrow.4
Me today: ahhh fantastic today let's fix the new Camera HAL.
Me 6 hours later and 90 tabs in Firefox and 15 terminal windows (yes really): well one could except it would be little easier.
Me now: snapshot on video is working. Taking photos works. Starting video rec freezes. Stopping it crashes entire HAL.
Yeahhh this will be fun even tomorrow I guess.4