|
|
Rockbox mail archiveSubject: bootloader hanging early on 80G G5.5 iPod - debugging attemptbootloader hanging early on 80G G5.5 iPod - debugging attempt
From: Paul Collins <paul_at_briny.ondioline.org>
Date: Wed, 11 Oct 2006 21:39:24 +1300
A number of people have succeeded in running Rockbox on their 30G G5.5
amiconn suggested that I try to debug ATA init somehow, but there
ata_device_init() (see firmware/target/arm/ata-pp5020.c) does
outl(inl(0xc3000028) | (1 << 5), 0xc3000028);
but that just writes back the register twice, unchanged, because
This next bit is probably a waste of time if the ATA init is indeed
By adding a bunch of debugging messages, I traced the hang through the
[bootloader] main()
perform_soft_reset() hangs here:
static int perform_soft_reset(void)
SET_REG(ATA_SELECT, SELECT_LBA | ata_device );
SET_REG(ATA_CONTROL, CONTROL_nIEN);
/* This little sucker can take up to 30 seconds */
/* Massage the return code so it is 0 on success and -1 on failure */
return ret;
So that's a bit odd.
I removed all of my LCD-writing calls from ata_read_sectors() on down,
Suggestions for more stuff to try are welcome.
-- Paul Collins Wellington, New Zealand Dag vijandelijk luchtschip de huismeester is doodReceived on 2006-10-11 Page was last modified "Jan 10 2012" The Rockbox Crew |