DEFAULT_APPLICATION_NAME=brandy-native-js
DEFAULT_TARGET_PACK_NAME_USER=pack_brandy_native_js_user
DEFAULT_APPLICATION_NAME_USER=brandy-native-js-user
-DEFAULT_CUSTOM_FW_VERSION=1.2.69
+DEFAULT_CUSTOM_FW_VERSION=1.2.70
TARGET_PACK_NAME=$DEFAULT_TARGET_PACK_NAME
APPLICATION_NAME=$DEFAULT_APPLICATION_NAME
APPLICATION_NAME=$DEFAULT_APPLICATION_NAME_USER
fi
+if [ "$1" == "oob128" ]
+then
+TARGET_PACK_NAME=pack_brandy_native_js_oob128
+APPLICATION_NAME=brandy-native-js-oob128
+BUILD_NAME=_OOB128
+fi
+
if [ "$1" == "z1" ]
then
TARGET_PACK_NAME=pack_brandy_native_js_z1
void nandflash_qspi_init(void);\r
void nandflash_qspi_resume(void);\r
\r
-int mount_user_res_partition(void);\r
+// int mount_user_res_partition(void);\r
void test_nand_flash_read_8(struct nand_driver_struct *test_nand_flash_driver, uint32_t nand_page);\r
void test_nand_flash_write_width8(struct nand_driver_struct *test_nand_flash_driver, uint32_t nand_page);\r
#endif /* End of #ifndef MC_NAND_CONFIG_H */\r
/*\r
* @Author: penglei 1624952103@qq.com\r
* @Date: 2024-06-29 17:26:01\r
- * @LastEditors: penglei 1624952103@qq.com\r
- * @LastEditTime: 2024-07-02 16:41:57\r
+ * @LastEditors: SnickerSun snickersun@163.com\r
+ * @LastEditTime: 2024-10-20 00:07:44\r
* @FilePath: /FD230/code/sdk/bootloader/flashboot/brandy/nandflash/include/nandflash_ds35x1g.h\r
* @Description: \r
* \r
#define NANDFLASH_DS35X1G_H\r
\r
#define DS35X1G_BYTES_PER_PAGE 2048\r
-#define DS35X1G_BYTES_PER_OOB 64\r
#define DS35X1G_PAGES_PER_BLOCK 64\r
#define DS35X1G_TOTAL_BLOCKS 1024\r
#define DS35X1G_CHIP_ID 0xE521//0xE521,6161 id 没有check\r
+#ifdef NANDFLASH_OOB_128 /* 外发flash固件到工厂烧录**/\r
+#define DS35X1G_BYTES_PER_OOB 128\r
+#define DS35X1G_OOB_TOTAL_LEN 1\r
+#define DS35X1G_OOB_PER_SIZE 32\r
+#define DS35X1G_OOB_1_OFFSET 0\r
+#define DS35X1G_OOB_2_OFFSET 0\r
+#define DS35X1G_OOB_3_OFFSET 0\r
+#define DS35X1G_OOB_4_OFFSET 0\r
+#else\r
+#define DS35X1G_BYTES_PER_OOB 64\r
#define DS35X1G_OOB_TOTAL_LEN 4\r
#define DS35X1G_OOB_PER_SIZE 8\r
#define DS35X1G_OOB_1_OFFSET 0\r
#define DS35X1G_OOB_2_OFFSET 16\r
#define DS35X1G_OOB_3_OFFSET 32\r
#define DS35X1G_OOB_4_OFFSET 48\r
-\r
+#endif\r
extern struct nand_driver_struct g_ds35x1g_driver;\r
\r
#endif /* End of #ifndef MC_NAND_DS35X1G_H */\r
'fs_image_path':'fd230',
'defines': ['-:SW_UART_DEBUG', '-:DUMP_MEM_SUPPORT', '-:DUMP_REG_SUPPORT', '-:SUPPORT_DFX_EXCEPTION'],
},
+
+ 'brandy-native-js-oob128': {
+ 'base_target_name': 'brandy-native-js',
+ 'fs_image_path':'fd230',
+ 'nandflash_oobsize': '128',
+ 'defines': [
+ 'NANDFLASH_OOB_128'
+ ],
+ },
'brandy-native-js-leakcheck': {
'base_target_name': 'brandy-native-js',
'fs_image_path':'fd230',
],
'ram_component_set': ['pinctrl'],
'target': 'ssb',
+ },
+ 'brandy-ssb-oob128': {
+ 'base_target_name': 'brandy-ssb',
+ 'defines': [
+ 'NANDFLASH_OOB_128',
+ ]
}
}
'pack_brandy_native_js_ct': ['brandy-ssb', 'brandy-native-js-r', 'brandy-native-js-ct'],
'pack_brandy_native_js_cm': ['brandy-ssb', 'brandy-native-js-r', 'brandy-native-js-cm'],
'pack_brandy_xts': ['brandy-ssb', 'brandy-xts-r', 'brandy-xts'],
-
+ 'pack_brandy_native_js_oob128': ['brandy-ssb-oob128', 'brandy-native-js-r', 'brandy-native-js-oob128'],
'brandy_all': ['brandy-ssb',
'brandy-target1', 'brandy-target3', 'brandy-target4', 'brandy-target5', 'brandy-native-js', 'brandy-native-js-user', 'brandy-xts',
'brandy-target1-r', 'brandy-target3-r', 'brandy-target4-r', 'brandy-target5-r', 'brandy-native-js-r', 'brandy-xts-r',
if __name__ == "__main__":
image_file = os.path.join(cur_dir, "%s.bin" %image_name)
tmp_file = os.path.join(cur_dir, "%s_tmp.bin" %image_name)
+ if len(sys.argv) == 3 :
+ out_path = os.path.join(sys.argv[1], "%s.bin" %image_name)
+ if sys.argv[2] == '128' :
+ cfg_obb_size = 128
+ else:
+ print("need give parms output path and oobsize!")
+ sys.exit(1)
if sys.platform == 'linux2' or sys.platform == 'linux':
partition_total = 0
os.system(command)
convert(tmp_file, image_file)
- if (len(sys.argv) == 2 and os.path.exists(image_file)):
- out_path = os.path.join(sys.argv[1], "%s.bin" %image_name)
+ if os.path.exists(image_file):
shutil.copyfile(image_file, out_path)
print("make yaffs image file over!")
output_path = env.get_output_path()
print(output_path)
# errcode = exec_shell([self.python_path, fs_script_path], None, True)
- errcode = exec_shell([self.python_path, fs_script_path, output_path], None, True)
+ if env.get("nandflash_oobsize") :
+ errcode = exec_shell([self.python_path, fs_script_path, output_path, env.get("nandflash_oobsize")], None, True)
+ else :
+ errcode = exec_shell([self.python_path, fs_script_path, output_path, '64' ], None, True)
if errcode != 0:
print("creat fs image error!")
self.print_build_result(target, errcode)
/*
* @Author: penglei 1624952103@qq.com
* @Date: 2024-06-07 11:18:26
- * @LastEditors: penglei 1624952103@qq.com
- * @LastEditTime: 2024-07-02 16:42:22
+ * @LastEditors: SnickerSun snickersun@163.com
+ * @LastEditTime: 2024-10-20 13:41:37
* @FilePath: /FD230/code/sdk/drivers/drivers/driver/nand_flash/nand/include/nandflash_ds35x1g.h
* @Description:
*
#define NANDFLASH_DS35X1G_H
#define DS35X1G_BYTES_PER_PAGE 2048
-#define DS35X1G_BYTES_PER_OOB 64
#define DS35X1G_PAGES_PER_BLOCK 64
#define DS35X1G_TOTAL_BLOCKS 1024
#define DS35X1G_CHIP_ID 0xE521//0xE521,6161 id 没有check
+#ifdef NANDFLASH_OOB_128 /* 外发flash固件到工厂烧录**/
+#define DS35X1G_BYTES_PER_OOB 128
+#define DS35X1G_OOB_TOTAL_LEN 1
+#define DS35X1G_OOB_PER_SIZE 32
+#define DS35X1G_OOB_1_OFFSET 0
+#define DS35X1G_OOB_2_OFFSET 0
+#define DS35X1G_OOB_3_OFFSET 0
+#define DS35X1G_OOB_4_OFFSET 0
+#else
+#define DS35X1G_BYTES_PER_OOB 64
#define DS35X1G_OOB_TOTAL_LEN 4
#define DS35X1G_OOB_PER_SIZE 8
#define DS35X1G_OOB_1_OFFSET 0
#define DS35X1G_OOB_2_OFFSET 16
#define DS35X1G_OOB_3_OFFSET 32
#define DS35X1G_OOB_4_OFFSET 48
-
+#endif
extern struct nand_driver_struct g_ds35x1g_driver;
#endif /* End of #ifndef MC_NAND_DS35X1G_H */