summaryrefslogtreecommitdiff
path: root/bootloader/common.c
AgeCommit message (Collapse)Author
2021-08-22bootloader: nuke a long-unused (and broken) code blockSolomon Peachy
Change-Id: I8177c70ef01fd8938f3683e74adc0e008034f92d
2020-10-26Whitespace cleanup on fb_viewport RewriteWilliam Wilgus
Change-Id: I24aac41c8abecf7b78a44d7f59e842b791be4563
2019-01-02Add Xuelin iHIFI 770/770C/800 supportSolomon Peachy
Taken from the xvortex fork (Roman Stolyarov) Ported, rebased, and cleaned up by myself. Change-Id: I7b2bca2d29502f2e4544e42f3d122786dd4b7978
2018-07-28Add cleaned-up xDuoo X3 supportSolomon Peachy
Cleaned up, rebased, and forward-ported from the xvortex fork. (original credit to vsoftster@gmail.com) Change-Id: Ibcc023a0271ea81e901450a88317708c2683236d Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
2017-09-05Initial commit for the Sony NWZ linux portAmaury Pouly
SUPPORTED SERIES: - NWZ-E450 - NWZ-E460 - NWZ-E470 - NWZ-E580 - NWZ-A10 NOTES: - bootloader makefile convert an extra font to be installed alongside the bootloader since sysfont is way too small - the toolsicon bitmap comes from the Oxygen iconset - touchscreen driver is untested TODO: - implement audio routing driver (pcm is handled by pcm-alsa) - fix playback: it crashes on illegal instruction in DEBUG builds - find out why the browser starts at / instead of /contents - implement radio support - implement return to OF for usb handling - calibrate battery curve (NB: of can report a battery level on a 0-5 scale but probabl don't want to use that ?) - implement simulator build (we need a nice image of the player) - figure out if we can detect jack removal POTENTIAL TODOS: - try to build a usb serial gadget and gdbserver Change-Id: Ic77d71e0651355d47cc4e423a40fb64a60c69a80
2016-05-25bootloader/common: disable unused broken codeCástor Muñoz
Disable (probably old) broken code, this fixes bootloader builds when ROCKBOX_HAS_LOGF is used. Change-Id: Id0ed2c3368855e2d2d2dbfb18149b9ed81c10b95
2013-06-27Move load_firmware() to separate fileMarcin Bukat
The idea is to share loading code between bootloaders and rolo(). Change-Id: I1656ed91946d7a05cb7c9fa7a16793c3c862a5cd Reviewed-on: http://gerrit.rockbox.org/190 Reviewed-by: Marcin Bukat <marcin.bukat@gmail.com>
2011-07-02bootloaders: cleanupRafaël Carré
- make printf buffer static and local to printf() - use '\0' instead of 0 for setting char - remove unused dummy functions git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30117 a1c6a512-1295-4272-9138-f99709370657
2011-01-21Gigabeat S: Renovate bootloader a bit to show splash, implement verbose, ↵Michael Sevakis
shutdown on low battery, handle hold-switch-on and wait only so long for USB if a USB charger is inserted at boot instead of being connected to a host. 'Bootloader USB mode' display is just part of normal printf stream now. Move interrupt stacks into .bss area so they aren't loaded (for firmware too). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29099 a1c6a512-1295-4272-9138-f99709370657
2011-01-18Try to get some control over #ifdef hell in usb.c by refactoring and inline ↵Michael Sevakis
function use. SYS_USB_DISCONNECTED_ACK hasn't been doing anything useful for the USB thread; remove it. USB thread simply ignores that value. Observe only valid usb_state transitions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29084 a1c6a512-1295-4272-9138-f99709370657
2010-08-02Rockbox as an application: Commit current Android port progress.Thomas Martitz
General state is: Rockbox is usable (plays music, saves configuration, touchscreen works too). Problems: - Playing music in the background (i.e. when switching to another app) doesn't work reliably, but I'm working on that now. - no cabbiev2 (only some preliminary files for it), no other default theme. - screen flickers sometimes if the updates are too frequent - no multi screen apk/package - strange behavior when a phone call comes in The java files (and the eclipse project) resides in android/, which is also supposed to be the build folder. I've put a small README in there for instructions. There are some steps needed after the make part, which are described there, and which eclipse mostly handles. But there ought to be some script/makefile rules which do that instead in the future. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27668 a1c6a512-1295-4272-9138-f99709370657
2010-06-23Sansa AMS bootloader: enter USB mode only when neededRafaël Carré
- If an error happens when reading partitions / rockbox.sansa - If the select button was pressed add an argument to error() to not power off, when we're going to enter USB mode to try to fix the problem, but display the error message anyway for debugging purpose git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27075 a1c6a512-1295-4272-9138-f99709370657
2010-03-28as3525v2: silence bootloaderRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25369 a1c6a512-1295-4272-9138-f99709370657
2010-03-23Packard Bell Vibe 500: remove the old bootloader code (actually a lack of ↵Szymon Dziok
code) and make the main-pp.c acting like a true bootloader for the DAP. It's the first step to integrate the DAP with the RBUtil. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25311 a1c6a512-1295-4272-9138-f99709370657
2010-03-15Clip+ : make the bootloader not verbose by defaultRafaël Carré
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25201 a1c6a512-1295-4272-9138-f99709370657
2009-12-25Merry Christmas Gogear HDD6330 owners! This is the start of the HDD6330 ↵Mark Arigo
port. At the moment, it's essentially a copy of the HDD1630 port with a minimal LCD driver. The touchpad doesn't work as expected, but you can still kind of navigate and listen to music/radio. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24112 a1c6a512-1295-4272-9138-f99709370657
2009-09-20Make Samsung YH* bootloaders non-verbose (i.e. show the bootlogo) ↵Thomas Martitz
(backported from the ams/pp bootloader branch) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22747 a1c6a512-1295-4272-9138-f99709370657
2009-08-19fix redNils Wallménius
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22432 a1c6a512-1295-4272-9138-f99709370657
2009-07-17Onda VX747: add dual-boot capability + make it possible to permanently ↵Maurus Cuelenaere
'stick' Rockbox to your DAP git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21919 a1c6a512-1295-4272-9138-f99709370657
2009-07-01Onda VX747: clean up bootloader a bit and make sure storage doesn't get ↵Maurus Cuelenaere
init'd twice git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21593 a1c6a512-1295-4272-9138-f99709370657
2009-04-10M:Robe 500: Remove some dead test code in bootloader, reorganize the ↵Karl Kurbjun
bootloader link script, and remove an unnecessary lcd disable/enable in initialization. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20674 a1c6a512-1295-4272-9138-f99709370657
2009-02-26Small fix for touchscreen-capable DAP's in display_logf()Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20114 a1c6a512-1295-4272-9138-f99709370657
2009-02-16Don't display logo in Onda VX747 bootloader (which also fixes bootloader builds)Maurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20026 a1c6a512-1295-4272-9138-f99709370657
2009-02-07Add optional logf display helper function for bootloadersMaurus Cuelenaere
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19938 a1c6a512-1295-4272-9138-f99709370657
2009-02-03Silence the m:robe 100 and HDD1630 bootloadersMark Arigo
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19908 a1c6a512-1295-4272-9138-f99709370657
2008-12-03Hopefully mop-up remaining red.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19317 a1c6a512-1295-4272-9138-f99709370657
2008-11-23Use BOOTDIR and BOOTFILE defines instead of hardcoded path and file. FS#9559Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19190 a1c6a512-1295-4272-9138-f99709370657
2008-11-17Show the Rockbox logo in the Telechips bootloader.Rob Purchase
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19129 a1c6a512-1295-4272-9138-f99709370657
2008-11-11the delay in the as3525 bootloader was driving me mad so remove it and get ↵Jonathan Gordon
the bootloader closer to where a "finished" one should be (only show info if sometrhing needs to be shown, which is always for now.) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19085 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
2008-05-21Philips GoGear SA9200 port. Working bootloader and normal builds, including ↵Mark Arigo
sound. No touchpad now, buttons limited to using vol+/vol-/power for up/down/select. Rockbox USB is enabled since the OF is MTP only...read the warnings on the PortalPlayerUsb wiki page. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17591 a1c6a512-1295-4272-9138-f99709370657
2007-09-20Sansa C200 bootloader works fine, no need to be verbose anymoreBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14775 a1c6a512-1295-4272-9138-f99709370657
2007-09-121st/2nd gen bootloader: * Don't be verbose by default anymore. * Don't ↵Jens Arnold
enable the backlight, as it looks bad in a bright environment due to backlight inversion, and it needs a lot of power. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14678 a1c6a512-1295-4272-9138-f99709370657
2007-07-27G1/G2 bootloader working (always in verbose mode for now). Corrected fatal ↵Jens Arnold
error help text for G1..G3. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14020 a1c6a512-1295-4272-9138-f99709370657
2007-04-21Commit FS#6929 - Gigabeat bootloader improvements by Barry Wardell and ↵Karl Kurbjun
myself. This build fixes the problems seen with the latest builds on the Gigabeat X. Added View IO Ports under the Debug menu for the Gigabeat. Make sure you grab the latest bootloader from the Wiki as the old bootloader will not work properly with new builds. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13225 a1c6a512-1295-4272-9138-f99709370657
2007-03-16In preparation for use with sansapatcher, change portalplayer bootloaders to ↵Barry Wardell
read firmwares in mi4 format. When loading the OF: 1) first try to load from a hidden disk partition 2) try loading /System/OF.mi4 3) finally fall back to loading /System/OF.bin which is what the old bootloader used. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12802 a1c6a512-1295-4272-9138-f99709370657
2007-03-12Disable bootloader messages in the H10 and Sansa bootloaders unless the PLAY ↵Barry Wardell
(on H10) or RIGHT (on Sansa) button is being held. Messages are still displayed if an error occurs. This has already been implemented for iPod bootloaders, but still needs implementing for the other bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12742 a1c6a512-1295-4272-9138-f99709370657
2007-03-05Disable bootloader messages in the ipod bootloader unless the RIGHT button ↵Dave Chapman
is being held. Messages are still displayed if an error occurs. This needs implementing for the other bootloaders. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12631 a1c6a512-1295-4272-9138-f99709370657
2007-02-22FS#6554 - Move bootloader code into a common fileLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12453 a1c6a512-1295-4272-9138-f99709370657
2007-01-28FS#6554. Move bootloader code into a common file. Only PortalPlayer devices ↵Barry Wardell
(iPods, H10, Sansa) are affected for the moment. Someone with access to (and no fear of bricking) an X5, H100, H300 and Gigabeat should try to adapt those bootloaders to also use the code in common.c. The (non-working) patch in the tracker would be a good place to start with this. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12136 a1c6a512-1295-4272-9138-f99709370657