GD32450i EVAL跑ucLinux配置筆記

2021-09-29 18:24:15 字數 2699 閱讀 3545

基於stm32f429-discovery開發板的u-boot進行修改

cp -r u-boot ./u-boot_gd32450i-eval

cd u-boot_gd32450i-eval

make

make成功後再進行修改。

hse 25mhz,systemcoreclock 200mhz, 在u-boot_gd32450i-eval/include/configs/stm32f429i-discory.h中配置鎖相環引數: m = 25, n = 400, p = 2, q = 9。

#if defined(config_stm32_mac)

do , , ,

, ,, , , , ,

, , ,

, , , ,

};static struct stm32f2_gpio_dsc rmii_gpio = , , ,

, , ,

, , ,

};int i;

if (platform == platform_stm32_stm_som ||

platform == platform_stm32_stm_disco ||

platform == platform_stm32_stm_stm32f439_som ||

platform == platform_stm32_stm_stm32f7_som ||

platform == platform_stm32_stm32f7_disco)

} else

}} while (0);

#endif

/*

* hw initialization

*/static int stm32_eth_hw_start(struct net_device *dev)

else

} if(rv != 0)

/** reset and configure

*/stm32_eth_hw_stop(dev);

在參考工程根目錄下執行make clone new=new_project_name來建立乙個新工程。

修改project/gd32450i-eval/gd32450i-eval.kernel.s***iso檔案,將0xd0000000改為0xc0000000。

這個檔案裡的引數應該和u-boot的配置匹配。

#define stm32_mac_dmaomr_tsf (1 << 21) /* start/stop rx */ 新增

#define stm32_mac_dmaomr_rsf (1 << 25) /* start/stop tx */ 新增

static int stm32_eth_hw_start(struct net_device *dev)裡新增一句

stm->regs->dmabmr = (32 << stm32_mac_dmabmr_pbl_bit) |

(32 << stm32_mac_dmabmr_rdp_bit) |

(stm32_mac_dmabmr_rtpr_2_1 <<

stm32_mac_dmabmr_rtpr_bit) |

stm32_mac_dmabmr_fb | stm32_mac_dmabmr_usp |

stm32_mac_dmabmr_aab;

stm->regs->dmaomr |= (stm32_mac_dmaomr_tsf | stm32_mac_dmaomr_rsf); 新增

編譯 gd 擴充套件

1.1.1 依賴libpng dev libjpeg dev libxpm dev1.1.2 解決sudo apt get install libpng dev sudo apt get install libjpeg dev sudo apt get install libxpm dev然後 wi...

php安裝擴充套件gd

進入 php解壓目錄 ext gd 目錄,usr local test upload php 5.6.31 ext gd 執行如下命令 php安裝目錄 bin phpize usr local php bin phpize 然後目錄中出現 configure 然後.configure with ph...

GD庫的使用

一 建立乙個簡單的影象 header content type image gig 新增此句解決亂碼問題 im imagecreate 200,60 white imagecolorallocate im,225,65,165 imagegif im 二 使用gd2函式在 上新增文字 header ...