Go to advanced search

by zeoneo
Thu Sep 05, 2019 6:02 am
Forum: Plan 9
Topic: how can I clone the plan 9 source code?
Replies: 1
Views: 325

how can I clone the plan 9 source code?

Hi guy, this is stupid question, how can I clone the plan 9 source code? I checked official wiki it doesn't have any documentations for cloning using git etc. I am specifically interested into /sources/contrib/miller repository.
by zeoneo
Sun Sep 01, 2019 1:11 pm
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

Not bare metal strictly speaking, but the Plan 9 driver is another alternative example you might want to look at for information. It's under 2400 lines of C, so it should be a bit easier to follow than the Linux brcmfmac driver. To write the Plan 9 driver without a device spec, I had to read all th...
by zeoneo
Thu Aug 29, 2019 10:41 am
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

Not bare metal strictly speaking, but the Plan 9 driver is another alternative example you might want to look at for information. It's under 2400 lines of C, so it should be a bit easier to follow than the Linux brcmfmac driver. To write the Plan 9 driver without a device spec, I had to read all th...
by zeoneo
Sat Aug 24, 2019 6:42 am
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

Sat Aug 17, 2019 3:33 am Maybe we could instrument the linux driver with more logging and check it using this way ? Or is there some kernel option to dump all sdio traffic ? I dumped 2 types of bcm43438 sdio traffic . 1. add some debug print to drivers/mmc/core/sdio_ops.c and core.c. https://github...
by zeoneo
Thu Aug 22, 2019 6:46 pm
Forum: Bare metal, Assembly language
Topic: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?
Replies: 7
Views: 897

Re: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?

Hi zeoneo Thanks for the reply and help. It is a little weird though since the raspberry pi B+ is A processor. I will give it a try later. I download the gnu-a tool to my mac and it does not work at all in MAC, very weird. I am thinking it probably does not support MACos, not sure though. https://d...
by zeoneo
Thu Aug 22, 2019 4:10 pm
Forum: Bare metal, Assembly language
Topic: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?
Replies: 7
Views: 897

Re: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?

arm-none-eabi-gcc produce following output. I think I downloaded RM build /Users/build/workspace/GCC-5-build_build-toolchain-mac/gcc-arm-none-eabi-5_4-2016q3-20160926/src/gcc/configure --target=arm-none-eabi --prefix=/Users/build/workspace/GCC-5-build_build-toolchain-mac/gcc-arm-none-eabi-5_4-2016q3...
by zeoneo
Wed Aug 21, 2019 5:20 am
Forum: Bare metal, Assembly language
Topic: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?
Replies: 7
Views: 897

Re: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?

Are you using raspberry pi 3 or raspberry pi 2? what kind of raspberry pi do you use? For OS development I use macOS, and I deploy it on RPI 3B (not B+). To compile my os you will need bare metal toolchain, I downloaded that from here. https://developer.arm.com/tools-and-software/open-source-softwa...
by zeoneo
Tue Aug 20, 2019 3:47 pm
Forum: Bare metal, Assembly language
Topic: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?
Replies: 7
Views: 897

Re: Notepad OS tutorial questions does anyone make the raspberry usb input working in bare mental mode?

Hi, I ported CSUD given here https://github.com/Chadderz121/csud. CSUD is writtern by same guy who authored baking pi tutorials. I got basic keyboard and mouse working individually with the help RPI bare-metal forum members, I never spent much time to make them work simultaneously (Should be resolve...
by zeoneo
Sun Aug 04, 2019 4:11 am
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

@Thalhammer Do you know how to load firmware in the chip? Is there any documentation on how to use wifi over SDIO? Datasheet talks about boot up sequence for gSPI interface in detail but none for SDIO. https://github.com/torvalds/linux/blob/master/drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdi...
by zeoneo
Sat Aug 03, 2019 4:13 am
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

Broadcoms WIFI division was bought by Cypress and the provide some of the documentation. You can find the datasheet here: https://www.cypress.com/file/298706/download Linux driver is called brcmfmac and its source is here: https://github.com/torvalds/linux/tree/master/drivers/net/wireless/broadcom/...
by zeoneo
Thu Aug 01, 2019 11:18 am
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

No its a custom implementation to fit my OS (I write a C++ RTOS, so no userspace etc and class oriented) but his code was one of the references I used. The only things I currently have is the datasheet of the chip (very little usefull information), the official brcmfmac source of the linux driver a...
by zeoneo
Wed Jul 31, 2019 1:00 pm
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

despite my driver for the arasan controller working fine Is it the same driver as implemented by LdB here https://github.com/LdB-ECM/Raspberry-Pi/tree/master/SD_FAT32. Do you have any reference documentation to start with Wifi driver? EDIT: I am very much interested in reimplantation but I fear I d...
by zeoneo
Wed Jul 31, 2019 11:38 am
Forum: Bare metal, Assembly language
Topic: Bare metal BCM43438 Driver
Replies: 24
Views: 4092

Re: Bare metal BCM43438 Driver

Guys is it feasible to copy all the object files related to wifi driver from linux build and create static library and use it in bare metal projects?

We can provide implementations of functions which are called from linux WiFi driver.
by zeoneo
Sun Jul 14, 2019 6:13 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

However I am still trying to get a clear picture of what you are thinking is in and out of the virtualization on the kernel, even things like where do your interrupts go and perhaps where do they get processed? I am planning to run all the EL1 stuff from 2GB on wards. Userspace code will run in vir...
by zeoneo
Sun Jul 14, 2019 5:56 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

I will agree to disagree it isn't worth worrying about because I would do it that way never, so I really don't care :) Same here. I am just posting the answer to my original question on how to use a linker script to generate single kernel binary file (boot section = 0x8000 and higher kernel half at...
by zeoneo
Sat Jul 13, 2019 4:02 pm
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

Then it does subtracts -2,147,483,648 which adds 0x80000000 so you get your 0x80009000 It will be always positive no matter if it is 32 or 64 bits. Label __code_start comes after virt_start hence it is placed at a higher address than virt_start that's what I understand from it. Any clues on how to ...
by zeoneo
Sat Jul 13, 2019 12:48 pm
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

Hi bzt,/LdB, I was trying to get away from this two-stage loading process, but now I think that was the mistake since I am trying tightly couple bootloader with kernel image. Only problem is how do I debug/test such kernel on qemu? On real hardware bootloader will set up the paging for kernel, what ...
by zeoneo
Sat Jul 13, 2019 10:37 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

virt address is 0x80000000, and _code_start has to be less than 0x3F000000 the last address possible. I don't think it's correct. Checkout the kernel map file here (80009000 T __code_start) 0000804c t .NotInHypMode 8001a5ac t .udivsi3_skip_div0_test 00000040 a ARM_F_BIT 00000080 a ARM_I_BIT 0000001...
by zeoneo
Sat Jul 13, 2019 4:17 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

Guys I am trying implement higher half kernel, but I think I am stuck in chicken egg problem. AFAK ttbr0 and ttbr1 needs physical addresses. I am using following linker script to link boot code at 0x8000 and kernel code at 2GB. I don't know how to find out the physical address of labels __first_lvl_...
by zeoneo
Sat Jun 01, 2019 4:44 am
Forum: Bare metal, Assembly language
Topic: Loading the kernel without the SD card
Replies: 5
Views: 1924

Re: Loading the kernel without the SD card

I can suggest the steps to debug. When I started using raspbootin 32 bit bootloader first I checked if serial UART is working? So i tried to send characters and hex data. When I verified data received from rpi is correct, then I compiled raspbootcom and sent some hex data from host computer, I would...
by zeoneo
Tue May 28, 2019 2:01 pm
Forum: Bare metal, Assembly language
Topic: Displaying fonts
Replies: 6
Views: 1038

Re: Displaying fonts

Awesome..!

I will try your solution on pi 3b OPENVG.

Thanks bzt.
--zeo
by zeoneo
Sat May 25, 2019 7:37 am
Forum: Bare metal, Assembly language
Topic: A little Progress on my little OS Project:
Replies: 23
Views: 2348

Re: A little Progress on my little OS Project:

@Ldb it is interesting. I will go through it and see if I can make it work. I need to do lot of reading on TTF formats, how to create font texture from ttf and finally how to render it using VC4. I was searching for FreeType bare metal port but I guess I need to have basic user land support to cross...
by zeoneo
Fri May 24, 2019 9:56 am
Forum: Bare metal, Assembly language
Topic: A little Progress on my little OS Project:
Replies: 23
Views: 2348

Re: A little Progress on my little OS Project:

Hi David, FontMan module for font handling is working for most purposes. Does pretty well for most bitmapped font applications (missing a few transformations), vector font support is still very minimal. Does it load true type font ? Have you tried FreeType library to load fonts and render it using O...
by zeoneo
Mon May 20, 2019 5:08 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

VBAR register sets it anywhere you like on a 4K byte aligned boundary, reset value is 0x0 I assume you are after EL1 http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.ddi0500j/CIHECBDH.html Yeah that's what I was exactly looking for. Thanks Ldb. Wow, that's a nearly 7 year thread necro. A...
by zeoneo
Sun May 19, 2019 10:36 am
Forum: Bare metal, Assembly language
Topic: Virtual memory and linking
Replies: 21
Views: 7390

Re: Virtual memory and linking

@romell, what did you do about exception vector table?

Currently I have exception table setup at 0x0. Can we change the exception table base address ?

Go to advanced search