解决开机kernel logo问题
author陈金泉 <chenjq@rock-chips.com>
Wed, 31 Aug 2011 04:46:31 +0000 (12:46 +0800)
committer陈金泉 <chenjq@rock-chips.com>
Wed, 31 Aug 2011 04:46:31 +0000 (12:46 +0800)
scripts/pnmtologo.c

index b5beb5bc5eb5a599c74f6776715ce8a836385e58..3b2698d427fc67a836adab51c52804bc7cacbf52 100755 (executable)
@@ -278,7 +278,7 @@ static void write_footer(void)
 
        if (logo_type == LINUX_LOGO_CLUT224) {
                fprintf(out, "\t.clut\t\t= &(%s_clut[%ld]),\n", logoname, sizeof(clut_name));
-               fprintf(out, "\t.data\t\t= &(%s_data[%ld])\n", logoname, sizeof(data_name));
+               fprintf(out, "\t.data\t\t= &(%s_data[%ld])\n", logoname, sizeof(data_name) + 4);
        } else {
                fprintf(out, "\t.width\t\t= %d,\n", logo_width);
                fprintf(out, "\t.height\t\t= %d,\n", logo_height);