0 Members and 7 Guests are viewing this topic.
#define NSPIRE_ADC_PHYS_BASE 0xC4000000#define NSPIRE_ADC_SIZE 0x000001DF#define NSPIRE_ADC_VIRT_BASE 0xfed7ee21 //0x1df before BOOT1
struct map_desc nspire_io_regs[] __initdata = { IOTABLE_ENTRY(ADC), IOTABLE_ENTRY(APB), IOTABLE_ENTRY(BOOT1), IOTABLE_ENTRY(INTERRUPT),};
adc[0] = readl(IOMEM(NSPIRE_ADC_VIRT_BASE + 0x110));
QuoteOr why can nClock run in background with linucx?It cannot Like the rest, it is completely replaced by Linux and its userspace.
Or why can nClock run in background with linucx?
QuoteAre there two different RAMs?Yes, there are indeed two different RAMs, but the main parts of both TI's OS and Linux use the same RAM, in the same area.
Are there two different RAMs?
And what is in the second RAM?
But how knows nClock the right time after any softreboot (linucx, chrash on calc etc.)?
QuoteAnd what is in the second RAM?There's the SRAM (flip-flops, fast) and the SDRAM (slow, has to be refreshed dynamically)
BTW: We should choose a new name, linucx is outdated and wrong. Maybe linspire?
SRAM is the normal operating RAM like in a PC,
I think, but what's in the other one?
Nope, that's the name of a commercial Linux distro ;-)
because the calculator usually flat out crashes, after exiting a Ndless program, if you draw past the end of the screen area.
You have to write it on a usb-stick using "dd if=rootfs.ext2 of=/dev/sdb".Also, you are using the wrong image, the only images with X are my builds and I use only tar.bz2.The ADC works perfectly with ndless, but not my linux kernel driver..What am I doing wrong?My changes in nspire_mmio.h:Code: [Select]#define NSPIRE_ADC_PHYS_BASE 0xC4000000#define NSPIRE_ADC_SIZE 0x000001DF#define NSPIRE_ADC_VIRT_BASE 0xfed7ee21 //0x1df before BOOT1common.c:Code: [Select]struct map_desc nspire_io_regs[] __initdata = { IOTABLE_ENTRY(ADC), IOTABLE_ENTRY(APB), IOTABLE_ENTRY(BOOT1), IOTABLE_ENTRY(INTERRUPT),};Then im accessing it with:Code: [Select]adc[0] = readl(IOMEM(NSPIRE_ADC_VIRT_BASE + 0x110));What am I doing wrong?
Is SZ_4K =1 because the size has to be in pages?I'll change it, test it and send you a new patch.Does X and directfb work on click and touchpads?If not, you have to add cx_clcd_check to your classic clcd panel struct.
it didn't work because the MMU can only map whole pages, not bytes, like it is on x86 with PAGing?