Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Paste Description for ipodnano2g.c

26286 diffed against current SVN

ipodnano2g.c
Saturday, October 23rd, 2010 at 10:20:32am UTC 

  1. Index: ipodnano2g.c
  2. ===================================================================
  3. --- ipodnano2g.c        (revision 26286)
  4. +++ ipodnano2g.c        (working copy)
  5. @@ -44,6 +44,7 @@
  6.  #include "power.h"
  7.  #include "file.h"
  8.  #include "common.h"
  9. +#include "version.h"
  10.  
  11.  /* Safety measure - maximum allowed firmware image size.
  12.     The largest known current (October 2009) firmware is about 6.2MB so
  13. @@ -54,9 +55,6 @@
  14.  /* The buffer to load the firmware into - use an uncached alias of 0x08000000 */
  15.  unsigned char *loadbuffer = (unsigned char *)0x48000000;
  16.  
  17. -/* Bootloader version */
  18. -char version[] = APPSVERSION;
  19. -
  20.  extern int line;
  21.  
  22.  void fatal_error(void)
  23. @@ -84,10 +82,6 @@
  24.      }
  25.  }
  26.  
  27. -/* aes_decrypt() and readfw() functions taken from iLoader.
  28. -   (C) Michael Sparmann and licenced under GPL v2 or later.
  29. -*/
  30. -
  31.  static void aes_decrypt(void* data, uint32_t size)
  32.  {
  33.      uint32_t ptr, i;
  34. @@ -198,9 +192,9 @@
  35.      lcd_set_background(LCD_BLACK);
  36.      lcd_clear_display();
  37.  
  38. -//    button_init();
  39. +    button_init();
  40.  
  41. -    btn=0; /* TODO */
  42. +    btn = button_status();
  43.  
  44.      /* Enable bootloader messages */
  45.      if (btn==BUTTON_RIGHT)
  46. @@ -209,7 +203,7 @@
  47.      lcd_setfont(FONT_SYSFIXED);
  48.  
  49.      printf("Rockbox boot loader");
  50. -    printf("Version: %s", version);
  51. +    printf("Version: " RBVERSION);
  52.  
  53.      i = storage_init();
  54.  

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right worth-right